-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Translate from Haskell source code to Template Haskell expressions
--   using the GHC parser
@package ghc-hs-meta
@version 0.1.5.0


-- | Settings needed for running the GHC Parser.
module Language.Haskell.Meta.Settings
baseDynFlags :: [Extension] -> DynFlags

module Language.Haskell.Meta.Translate
toExp :: DynFlags -> HsExpr GhcPs -> Exp


-- | This module is here to parse Haskell expression using the GHC Api
module Language.Haskell.Meta.Parse

-- | Parse a Haskell expression from source code into a Template Haskell
--   expression. See <tt>parseExpWithExts</tt> or
--   <tt>parseExpWithFlags</tt> for customizing with additional extensions
--   and settings.
parseExp :: String -> Either (Int, Int, String) Exp

-- | Parse a Haskell expression from source code into a Template Haskell
--   expression using a given set of GHC extensions.
parseExpWithExts :: [Extension] -> String -> Either (Int, Int, String) Exp

-- | Parse a Haskell expression from source code into a Template Haskell
--   expression using a given set of GHC DynFlags.
parseExpWithFlags :: DynFlags -> String -> Either (Int, Int, String) Exp

-- | Run the GHC parser to parse a Haskell expression into a
--   <tt>HsExpr</tt>.
parseHsExpr :: DynFlags -> String -> Either (Int, Int, String) (HsExpr GhcPs)
