Module

Chirashi

Package
purescript-chirashi
Repository
justinwoo/purescript-chirashi

#VariantError Source

data VariantError :: # Type -> Type

An instance of the VariantError class, a subclass of Error, which holds a variant for extracting error information.

#mkVariantError Source

mkVariantError :: forall r. Variant r -> Error

Create an Error using a Variant value

#mkVariantError' Source

mkVariantError' :: forall r. Variant r -> VariantError r

Create a VariantError using a Variant value

#upcastVariantError Source

upcastVariantError :: forall r. VariantError r -> Error

Upcast a VariantError to Error

#readVariant Source

readVariant :: forall r. MatchKey r => Error -> Maybe (Variant r)

Read a Variant from a Error

#readVariantError Source

readVariantError :: forall r. MatchKey r => Error -> Maybe (VariantError r)

Read a VariantError from a Error

#getVariant Source

getVariant :: forall r. VariantError r -> Variant r

Get the Variant value out of a VariantError

#_mkVariantError Source

_mkVariantError :: forall a r. a -> VariantError r

#_readVariantError Source

_readVariantError :: forall a b r. Fn4 (String -> Boolean) (Maybe b) (a -> Maybe a) Error (Maybe (VariantError r))

#_getVariant Source

_getVariant :: forall r. VariantError r -> Variant r

#MatchKey Source

class MatchKey (r :: # Type)  where

Members

Instances

#MatchKeyImpl Source

class MatchKeyImpl (rl :: RowList)  where

Members

Instances

Modules
Chirashi