Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data SEither sl sr elr where
- demoteSEither :: forall dl dr sl sr elr. (forall l. sl l -> dl) -> (forall r. sr r -> dr) -> SEither sl sr elr -> Either dl dr
- class SingEither (cl :: lk -> Constraint) (cr :: rk -> Constraint) (sl :: lk -> Type) (sr :: rk -> Type) (elr :: Either lk rk) where
- singEither' :: (forall l. cl l => sl l) -> (forall r. cr r => sr r) -> SEither sl sr elr
- singEither :: forall cl cr sl sr elr. SingEither cl cr sl sr elr => (forall l. cl l => sl l) -> (forall r. cr r => sr r) -> SEither sl sr elr
Documentation
data SEither sl sr elr where Source #
Singleton Either
.
demoteSEither :: forall dl dr sl sr elr. (forall l. sl l -> dl) -> (forall r. sr r -> dr) -> SEither sl sr elr -> Either dl dr Source #
class SingEither (cl :: lk -> Constraint) (cr :: rk -> Constraint) (sl :: lk -> Type) (sr :: rk -> Type) (elr :: Either lk rk) where Source #
singEither' :: (forall l. cl l => sl l) -> (forall r. cr r => sr r) -> SEither sl sr elr Source #
Instances
cl l => SingEither (cl :: a -> Constraint) (cr :: rk -> Constraint) (sl :: a -> Type) (sr :: rk -> Type) ('Left l :: Either a rk) Source # | |
Defined in Singleraeh.Either singEither' :: (forall (l0 :: lk). cl l0 => sl l0) -> (forall (r :: rk0). cr r => sr r) -> SEither sl sr ('Left l) Source # | |
cr r => SingEither (cl :: lk -> Constraint) (cr :: b -> Constraint) (sl :: lk -> Type) (sr :: b -> Type) ('Right r :: Either lk b) Source # | |
Defined in Singleraeh.Either singEither' :: (forall (l :: lk0). cl l => sl l) -> (forall (r0 :: rk). cr r0 => sr r0) -> SEither sl sr ('Right r) Source # |
singEither :: forall cl cr sl sr elr. SingEither cl cr sl sr elr => (forall l. cl l => sl l) -> (forall r. cr r => sr r) -> SEither sl sr elr Source #