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

Singleraeh.Sing

Documentation

class Sing (sa :: ak -> Type) where Source #

Associated Types

type SingC sa :: ak -> Constraint Source #

Methods

sing' :: forall (a :: ak). SingC sa a => sa a Source #

Instances

Instances details
Sing SNat Source # 
Instance details

Defined in Singleraeh.Sing

Associated Types

type SingC SNat :: ak -> Constraint Source #

Methods

sing' :: forall (a :: ak). SingC SNat a => SNat a Source #

Sing SChar Source # 
Instance details

Defined in Singleraeh.Sing

Associated Types

type SingC SChar :: ak -> Constraint Source #

Methods

sing' :: forall (a :: ak). SingC SChar a => SChar a Source #

Sing SSymbol Source # 
Instance details

Defined in Singleraeh.Sing

Associated Types

type SingC SSymbol :: ak -> Constraint Source #

Methods

sing' :: forall (a :: ak). SingC SSymbol a => SSymbol a Source #

(Sing sl, Sing sr) => Sing (SEither sl sr :: Either l r -> Type) Source # 
Instance details

Defined in Singleraeh.Either

Associated Types

type SingC (SEither sl sr) :: ak -> Constraint Source #

Methods

sing' :: forall (a :: ak). SingC (SEither sl sr) a => SEither sl sr a Source #

sing :: forall {ak} (sa :: ak -> Type) (a :: ak). (Sing sa, SingC sa a) => sa a Source #