Module

WhineM

Package
purescript-whine-core
Repository
collegevine/purescript-whine

#Env Source

type Env = { logLevel :: LogSeverity }

Instances

#WhineM Source

newtype WhineM :: Row Type -> (Type -> Type) -> Type -> Typenewtype WhineM v m a

Constructors

Instances

#runWhineM Source

runWhineM :: forall v m a. MonadEffect m => Env -> WhineM v m a -> m (a /\ (Array (Violation v)))

#mapViolations Source

mapViolations :: forall v w m a. Monad m => (Violation v -> Violation w) -> WhineM v m a -> WhineM w m a

#unliftWhineM Source

unliftWhineM :: forall @m v a x. MonadEffect m => (x -> WhineM v m a) -> WhineM v m (x -> m a)