Module

Run.Except

Package
purescript-run
Repository
natefaubion/purescript-run

#Except Source

newtype Except :: forall k. Type -> k -> Typenewtype Except e a

Constructors

Instances

#EXCEPT Source

type EXCEPT :: forall k. Type -> Row (k -> Type) -> Row (k -> Type)type EXCEPT e r = (except :: Except e | r)

#FAIL Source

type FAIL :: forall k. Row (k -> Type) -> Row (k -> Type)type FAIL r = EXCEPT Unit r

#_except Source

_except :: Proxy "except"

#liftExcept Source

liftExcept :: forall e a r. Except e a -> Run ((EXCEPT e) + r) a

#liftExceptAt Source

liftExceptAt :: forall t e a r s. IsSymbol s => Cons s (Except e) t r => Proxy s -> Except e a -> Run r a

#runExcept Source

runExcept :: forall e a r. Run ((EXCEPT e) + r) a -> Run r (Either e a)

#runExceptAt Source

runExceptAt :: forall t e a r s. IsSymbol s => Cons s (Except e) t r => Proxy s -> Run r a -> Run t (Either e a)

#runFail Source

runFail :: forall a r. Run (FAIL + r) a -> Run r (Maybe a)

#runFailAt Source

runFailAt :: forall t a r s. IsSymbol s => Cons s Fail t r => Proxy s -> Run r a -> Run t (Maybe a)

#throw Source

throw :: forall e a r. e -> Run ((EXCEPT e) + r) a

#throwAt Source

throwAt :: forall t e a r s. IsSymbol s => Cons s (Except e) t r => Proxy s -> e -> Run r a

#fail Source

fail :: forall a r. Run (FAIL + r) a

#failAt Source

failAt :: forall t a r s. IsSymbol s => Cons s Fail t r => Proxy s -> Run r a

#rethrow Source

rethrow :: forall e a r. Either e a -> Run ((EXCEPT e) + r) a

#rethrowAt Source

rethrowAt :: forall t e a r s. IsSymbol s => Cons s (Except e) t r => Proxy s -> Either e a -> Run r a

#note Source

note :: forall e a r. e -> Maybe a -> Run ((EXCEPT e) + r) a

#noteAt Source

noteAt :: forall t e a r s. IsSymbol s => Cons s (Except e) t r => Proxy s -> e -> Maybe a -> Run r a

#fromJust Source

fromJust :: forall a r. Maybe a -> Run (FAIL + r) a

#fromJustAt Source

fromJustAt :: forall t a r s. IsSymbol s => Cons s Fail t r => Proxy s -> Maybe a -> Run r a

#catch Source

catch :: forall e a r. (e -> Run r a) -> Run ((EXCEPT e) + r) a -> Run r a

#catchAt Source

catchAt :: forall t e a r s. IsSymbol s => Cons s (Except e) t r => Proxy s -> (e -> Run t a) -> Run r a -> Run t a