homplexity-0.4.8.0: Haskell code quality tool

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Homplexity.Parse

Description

Parsing of Haskell source files, and error reporting for unparsable files.

Synopsis

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.

parseTest :: String -> String -> IO (Module SrcLoc, [CommentLink]) Source #

For use in test suite