Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module partially reexports Language.Haskell.Exts.Parser with adaptations.
IMPORTANT: if you require compatiblity with ghc 7.8, you should use the
function listOf
for constructing ListOf
values!
- type ListOf = ListOf
- pattern ListOf :: forall a. [a] -> ListOf a
- listOf :: [a] -> ListOf a
- type PragmasAndModuleName = PragmasAndModuleName ()
- pattern PragmasAndModuleName :: [ModulePragma] -> Maybe ModuleName -> PragmasAndModuleName
- type PragmasAndModuleHead = PragmasAndModuleHead ()
- pattern PragmasAndModuleHead :: [ModulePragma] -> Maybe ModuleHead -> PragmasAndModuleHead ()
- type ModuleHeadAndImports = ModuleHeadAndImports ()
- pattern ModuleHeadAndImports :: [ModulePragma] -> Maybe ModuleHead -> [ImportDecl] -> ModuleHeadAndImports ()
- parse :: (Parseable (ast SrcSpanInfo), Functor ast) => String -> ParseResult (ast ())
- parseWithMode :: (Parseable (ast SrcSpanInfo), Functor ast) => ParseMode -> String -> ParseResult (ast ())
- parseModule :: String -> ParseResult Module
- parseModuleWithMode :: ParseMode -> String -> ParseResult Module
- parseExp :: String -> ParseResult Exp
- parseExpWithMode :: ParseMode -> String -> ParseResult Exp
- parseStmt :: String -> ParseResult Stmt
- parseStmtWithMode :: ParseMode -> String -> ParseResult Stmt
- parsePat :: String -> ParseResult Pat
- parsePatWithMode :: ParseMode -> String -> ParseResult Pat
- parseDecl :: String -> ParseResult Decl
- parseDeclWithMode :: ParseMode -> String -> ParseResult Decl
- parseType :: String -> ParseResult Type
- parseTypeWithMode :: ParseMode -> String -> ParseResult Type
- parseImportDecl :: String -> ParseResult ImportDecl
- parseImportDeclWithMode :: ParseMode -> String -> ParseResult ImportDecl
- getTopPragmas :: String -> ParseResult [ModulePragma]
- module Language.Haskell.Exts.Parser
Datatypes and Constructors
ListOf
PragmasAndModuleName
type PragmasAndModuleName = PragmasAndModuleName () Source #
pattern PragmasAndModuleName :: [ModulePragma] -> Maybe ModuleName -> PragmasAndModuleName Source #
PragmasAndModuleHead
type PragmasAndModuleHead = PragmasAndModuleHead () Source #
pattern PragmasAndModuleHead :: [ModulePragma] -> Maybe ModuleHead -> PragmasAndModuleHead () Source #
ModuleHeadAndImports
type ModuleHeadAndImports = ModuleHeadAndImports () Source #
pattern ModuleHeadAndImports :: [ModulePragma] -> Maybe ModuleHead -> [ImportDecl] -> ModuleHeadAndImports () Source #
Functions
parse :: (Parseable (ast SrcSpanInfo), Functor ast) => String -> ParseResult (ast ()) Source #
parseWithMode :: (Parseable (ast SrcSpanInfo), Functor ast) => ParseMode -> String -> ParseResult (ast ()) Source #
parseModule :: String -> ParseResult Module Source #
parseModuleWithMode :: ParseMode -> String -> ParseResult Module Source #
parseExpWithMode :: ParseMode -> String -> ParseResult Exp Source #
parseStmtWithMode :: ParseMode -> String -> ParseResult Stmt Source #
parsePatWithMode :: ParseMode -> String -> ParseResult Pat Source #
parseDeclWithMode :: ParseMode -> String -> ParseResult Decl Source #
parseTypeWithMode :: ParseMode -> String -> ParseResult Type Source #
getTopPragmas :: String -> ParseResult [ModulePragma] Source #
module Language.Haskell.Exts.Parser