extractable-singleton-0.0.1: A functor, where the "stored" value is isomorphic to Identity

Safe HaskellSafe
LanguageHaskell2010

Data.Singleton.Class

Documentation

class Extractable (f :: * -> *) where #

Methods

runSingleton :: f a -> a #

Instances
Extractable Identity # 
Instance details

Defined in Data.Singleton.Class

Methods

runSingleton :: Identity a -> a #

Extractable ((,) e) # 
Instance details

Defined in Data.Singleton.Class

Methods

runSingleton :: (e, a) -> a #

Extractable ((,,) w s) # 
Instance details

Defined in Data.Singleton.Class

Methods

runSingleton :: (w, s, a) -> a #

(Extractable f, Extractable g) => Extractable (Compose f g) # 
Instance details

Defined in Data.Singleton.Class

Methods

runSingleton :: Compose f g a -> a #