Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module is here to parse Haskell expression using the GHC Api
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.