Module
Bibimbap
- Package
- purescript-bibimbap
- Repository
- justinwoo/purescript-bibimbap
#GenericSumError Source
data GenericSumError :: Type -> Type
An instance of the GenericSumError class, a subclass of Error, which holds a genericSum for extracting error information.
#mkGenericSumError Source
mkGenericSumError :: forall a. GetTagName a => a -> Error
Create an Error using a GenericSum value
#mkGenericSumError' Source
mkGenericSumError' :: forall a. GetTagName a => a -> GenericSumError a
Create a GenericSumError using a GenericSum value
#upcastGenericSumError Source
upcastGenericSumError :: forall a. GenericSumError a -> Error
Upcast a GenericSumError to Error
#readGenericSum Source
readGenericSum :: forall a. MatchKey a => Error -> Maybe a
Read a GenericSum from a Error
#readGenericSumError Source
readGenericSumError :: forall a. MatchKey a => Error -> Maybe (GenericSumError a)
Read a GenericSumError from a Error
#getGenericSum Source
getGenericSum :: forall a. GenericSumError a -> a
Get the GenericSum value out of a GenericSumError
#_mkGenericSumError Source
_mkGenericSumError :: forall a. Fn2 String a (GenericSumError a)
#_readGenericSumError Source
_readGenericSumError :: forall b a. Fn4 (String -> Boolean) (Maybe b) (a -> Maybe a) Error (Maybe (GenericSumError a))
#_getGenericSum Source
_getGenericSum :: forall a. GenericSumError a -> a
#GetTagName Source
class GetTagName (a :: Type) where
Members
getTagName :: a -> String
Instances
(GetTagNameImpl rep, Generic a rep) => GetTagName a
#GetTagNameImpl Source
class GetTagNameImpl (rep :: Type) where
Members
getTagNameImpl :: rep -> String
Instances
(GetTagNameImpl a, GetTagNameImpl b) => GetTagNameImpl (Sum a b)
(IsSymbol name) => GetTagNameImpl (Constructor name a)
#MatchKeyImpl Source
class MatchKeyImpl (rep :: Type) where
Members
matchKeyImpl :: Proxy rep -> String -> Boolean
Instances
(MatchKeyImpl a, MatchKeyImpl b) => MatchKeyImpl (Sum a b)
(IsSymbol name) => MatchKeyImpl (Constructor name ty)
- Modules
- Bibimbap