purescript-0.10.4: PureScript Programming Language Compiler

Safe HaskellNone
LanguageHaskell98

Language.PureScript.Parser.Declarations

Description

Parsers for module definitions and declarations

Synopsis

Documentation

parseDeclaration :: TokenParser Declaration Source #

Parse a single declaration

parseModule :: TokenParser Module Source #

Parse a module header and a collection of declarations

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

Parse a collection of modules in parallel

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

Parses a single module with FilePath for eventual parsing errors

parseBinderNoParens :: TokenParser Binder Source #

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

toPositionedError :: ParseError -> ErrorMessage Source #

Converts a ParseError into a PositionedError