Safe Haskell | None |
---|---|
Language | Haskell2010 |
Smuggler2.Parser
Description
Documentation
runParser :: DynFlags -> FilePath -> String -> RnM (Either () (Anns, ParsedSource)) Source #
Wrapper around the 'ghc-exactprint' parser. Prints diagnostics for failed parses
(which should never happen). We need to use
parseModuleFromStringInternal
because ExactPrintparseModuleFromString
doesn't pick up the correct DynFlags
in -- some cases.