singleraeh-0.1.0: raehik's singletons
Safe HaskellSafe-Inferred
LanguageGHC2021

Singleraeh.Either

Synopsis

Documentation

data SEither sa sb eab where Source #

Singleton Either.

Constructors

SLeft :: sa a -> SEither sa sb (Left a) 
SRight :: sb b -> SEither sa sb (Right b) 

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 #