Safe Haskell | None |
---|---|
Language | Haskell2010 |
Parsing of Haskell source files, and error reporting for unparsable files.
Synopsis
- parseSource :: [Extension] -> FilePath -> IO (Either Log (Module SrcLoc, [CommentLink]))
- parseTest :: String -> String -> IO (Module SrcLoc, [CommentLink])
Documentation
parseSource :: [Extension] -> FilePath -> IO (Either Log (Module SrcLoc, [CommentLink])) Source #
Parse Haskell source file, using CppHs for preprocessing, and haskell-src-exts for parsing.
Catches all exceptions and wraps them as Critical
log messages.