ghc-lib-parser-ex-9.12.0.0: Programming with GHC parse trees

Safe Haskell | None
Language | Haskell2010

Language.Haskell.GhclibParserEx.GHC.Parser

# Documentation

parseFile :: String -> DynFlags -> String -> ParseResult (Located (HsModule GhcPs)) Source #

parseModule :: String -> DynFlags -> ParseResult (Located (HsModule GhcPs)) Source #

parseSignature :: String -> DynFlags -> ParseResult (Located (HsModule GhcPs)) Source #

parseImport :: String -> DynFlags -> ParseResult (LImportDecl GhcPs) Source #

parseStatement :: String -> DynFlags -> ParseResult (LStmt GhcPs (LHsExpr GhcPs)) Source #

parseBackpack :: String -> DynFlags -> ParseResult [LHsUnit PackageName] Source #

parseDeclaration :: String -> DynFlags -> ParseResult (LHsDecl GhcPs) Source #

parseExpression :: String -> DynFlags -> ParseResult (LHsExpr GhcPs) Source #

parsePattern :: String -> DynFlags -> ParseResult (LPat GhcPs) Source #

parseTypeSignature :: String -> DynFlags -> ParseResult (LHsDecl GhcPs) Source #

parseStmt :: String -> DynFlags -> ParseResult (Maybe (LStmt GhcPs (LHsExpr GhcPs))) Source #

parseIdentifier :: String -> DynFlags -> ParseResult (LocatedN RdrName) Source #

parseType :: String -> DynFlags -> ParseResult (LHsType GhcPs) Source #

parseHeader :: String -> DynFlags -> ParseResult (Located (HsModule GhcPs)) Source #

parse :: P a -> String -> DynFlags -> ParseResult a Source #