Module
Yoga.Om.Error
- Package
- purescript-yoga-om
- Repository
- rowtype-yoga/purescript-yoga-om
#mkError Source
mkError :: forall errorKey errorsBefore errorsAfter a. Cons errorKey a errorsBefore errorsAfter => IsSymbol errorKey => ErrorKey errorKey -> a -> OneOfTheseErrors errorsAfter#OneOfTheseErrors Source
type OneOfTheseErrors :: Row Type -> Typetype OneOfTheseErrors = Variant
#ParallelError Source
data ParallelError t0#toParallelErrorImpl Source
toParallelErrorImpl :: forall a err. Fn3 (a -> Maybe a) (Maybe a) Error (Maybe (ParallelError err))#toParallelError Source
toParallelError :: forall err. Error -> Maybe (ParallelError err)#parallelErrorToError Source
parallelErrorToError :: forall err. ParallelError err -> Error#newParallelError Source
newParallelError :: forall err. err -> ParallelError err#getParallelError Source
getParallelError :: forall err. ParallelError err -> err#SingletonVariantRecord Source
class SingletonVariantRecord :: Row Type -> Row Type -> Constraintclass SingletonVariantRecord a b | a -> b where
Helper class to make throwing errors easier
Members
singletonRecordToVariant :: Record a -> Variant b
Instances
- Modules
- Yoga.
Om - Yoga.
Om. Error