purescript-0.1.9: PureScript Programming Language Compiler

Safe HaskellNone

Language.PureScript.Pretty.Common

Description

 

Documentation

newtype Pattern u a b Source

Constructors

Pattern 

Fields

runPattern :: Kleisli (StateT u Maybe) a b
 

pattern :: Pattern u a b -> u -> a -> Maybe bSource

mkPattern :: (a -> Maybe b) -> Pattern u a bSource

mkPattern' :: (a -> StateT u Maybe b) -> Pattern u a bSource

chainl :: Pattern u a (a, a) -> (r -> r -> r) -> Pattern u a r -> Pattern u a rSource

chainr :: Pattern u a (a, a) -> (r -> r -> r) -> Pattern u a r -> Pattern u a rSource

wrap :: Pattern u a (s, a) -> (s -> r -> r) -> Pattern u a r -> Pattern u a rSource

split :: Pattern u a (s, t) -> (s -> t -> r) -> Pattern u a r -> Pattern u a rSource

data OperatorTable u a r Source

Constructors

OperatorTable 

Fields

runOperatorTable :: [[Operator u a r]]
 

data Operator u a r whereSource

Constructors

AssocL :: Pattern u a (a, a) -> (r -> r -> r) -> Operator u a r 
AssocR :: Pattern u a (a, a) -> (r -> r -> r) -> Operator u a r 
Wrap :: Pattern u a (s, a) -> (s -> r -> r) -> Operator u a r 
Split :: Pattern u a (s, t) -> (s -> t -> r) -> Operator u a r