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

Singleraeh.Maybe

Synopsis

Documentation

data SMaybe sa (ma :: Maybe a) where Source #

Singleton Maybe.

Constructors

SJust :: sa a -> SMaybe sa (Just a) 
SNothing :: SMaybe sa Nothing 

demoteSMaybe :: forall da sa ma. (forall a. sa a -> da) -> SMaybe sa ma -> Maybe da Source #