purescript-0.13.0: PureScript Programming Language Compiler

Safe HaskellNone
LanguageHaskell2010

Language.PureScript.CST

Synopsis

Documentation

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

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

newtype ParserM e s a Source #

A bare bones, CPS'ed `StateT s (Except e) a`.

Constructors

Parser (forall r. s -> (s -> e -> r) -> (s -> a -> r) -> r) 
Instances
Monad (ParserM e s) Source # 
Instance details

Defined in Language.PureScript.CST.Monad

Methods

(>>=) :: ParserM e s a -> (a -> ParserM e s b) -> ParserM e s b #

(>>) :: ParserM e s a -> ParserM e s b -> ParserM e s b #

return :: a -> ParserM e s a #

fail :: String -> ParserM e s a #

Functor (ParserM e s) Source # 
Instance details

Defined in Language.PureScript.CST.Monad

Methods

fmap :: (a -> b) -> ParserM e s a -> ParserM e s b #

(<$) :: a -> ParserM e s b -> ParserM e s a #

Applicative (ParserM e s) Source # 
Instance details

Defined in Language.PureScript.CST.Monad

Methods

pure :: a -> ParserM e s a #

(<*>) :: ParserM e s (a -> b) -> ParserM e s a -> ParserM e s b #

liftA2 :: (a -> b -> c) -> ParserM e s a -> ParserM e s b -> ParserM e s c #

(*>) :: ParserM e s a -> ParserM e s b -> ParserM e s b #

(<*) :: ParserM e s a -> ParserM e s b -> ParserM e s a #