Permalink
Browse files

Clarified the haddock comment for parseFile, that it will only parse …

…UTF-8 if the locale supports it.
  • Loading branch information...
alanz committed May 6, 2012
1 parent 81f74c5 commit 43935bb7c6b766775c8c68a27929966d732c73fd
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/Language/JavaScript/Parser/Parser.hs
@@ -34,6 +34,9 @@ readJs input = do
Left msg -> error (show msg)
Right p -> p
+-- | Parse the given file.
+-- For UTF-8 support, make sure your locale is set such that
+-- "System.IO.localeEncoding" returns "utf8"
parseFile :: FilePath -> IO AST.JSNode
parseFile filename =
do

0 comments on commit 43935bb

Please sign in to comment.