Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
This module is here to parse Haskell expression using the GHC Api
Stolen from ghc-hs-meta
Documentation
parseExp :: String -> Either (Int, Int, String) Exp Source #
Parse a Haskell expression from source code into a Template Haskell expression.
See parseExpWithExts
or parseExpWithFlags
for customizing with additional extensions and settings.
parseExpWithExts :: [Extension] -> String -> Either (Int, Int, String) Exp Source #
Parse a Haskell expression from source code into a Template Haskell expression using a given set of GHC extensions.