Module

Free.Rwse

Package
purescript-rwse-free
Repository
ethul/purescript-rwse-free

#Rwse Source

type Rwse f reader writer state error = Free (RwseF f reader writer state error)

#RwseF Source

data RwseF f reader writer state error a

Constructors

#ask Source

ask :: forall error state writer reader f. Rwse f reader writer state error reader

#tell Source

tell :: forall error state writer reader f. writer -> Rwse f reader writer state error Unit

#get Source

get :: forall error state writer reader f. Rwse f reader writer state error state

#put Source

put :: forall error state writer reader f. state -> Rwse f reader writer state error Unit

#modify Source

modify :: forall error state writer reader f. (state -> state) -> Rwse f reader writer state error Unit

#throw Source

throw :: forall a error state writer reader f. error -> Rwse f reader writer state error a

#catch Source

catch :: forall a error state writer reader f. Free f a -> (error -> Free f a) -> Rwse f reader writer state error a