smuggler2-0.3.6.2: GHC Source Plugin that helps to minimise imports and generate explicit exports
Safe HaskellNone
LanguageHaskell2010

Smuggler2.Parser

Description

 
Synopsis

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.