purescript-0.11.6: PureScript Programming Language Compiler

Safe HaskellNone
LanguageHaskell2010

Language.PureScript.Parser.Declarations

Description

Parsers for module definitions and declarations

Synopsis

Documentation

parseDeclaration :: TokenParser Declaration #

Parse a single declaration

parseModule :: TokenParser Module #

Parse a module header and a collection of declarations

parseModuleDeclaration :: TokenParser (ModuleName, Maybe [DeclarationRef]) #

Parse a module declaration and its export declarations

parseModulesFromFiles :: forall m k. MonadError MultipleErrors m => (k -> FilePath) -> [(k, Text)] -> m [(k, Module)] #

Parse a collection of modules in parallel

parseModuleFromFile :: (k -> FilePath) -> (k, Text) -> Either ParseError (k, Module) #

Parses a single module with FilePath for eventual parsing errors

parseValue :: TokenParser Expr #

Parse an expression

parseGuard :: TokenParser [Guard] #

Parse a guard

parseBinder :: TokenParser Binder #

Parse a binder

parseBinderNoParens :: TokenParser Binder #

Parse a binder as it would appear in a top level declaration

toPositionedError :: ParseError -> ErrorMessage #

Converts a ParseError into a PositionedError