typelevel-1.2.3: Useful type level operations (type families and related operators).

Safe HaskellNone
LanguageHaskell2010

Type.Known

Synopsis

Documentation

type family KnownKindVal (nat :: Type) where ... Source #

type family KnownTypeVal (t :: k) where ... Source #

Equations

KnownTypeVal (t :: k) = KnownKindVal k 

class KnownType t where Source #

Instances
KnownNat t => KnownType (t :: Nat) Source # 
Instance details

Defined in Type.Known

KnownSymbol t => KnownType (t :: Symbol) Source # 
Instance details

Defined in Type.Known

fromType' :: forall t s. (KnownType t, Convertible' (KnownTypeVal t) s) => s Source #

class KnownNat (n :: Nat) #

This class gives the integer associated with a type-level natural. There are instances of the class for every concrete literal: 0, 1, 2, etc.

Since: base-4.7.0.0

Minimal complete definition

natSing

class KnownSymbol (n :: Symbol) #

This class gives the string associated with a type-level symbol. There are instances of the class for every concrete literal: "hello", etc.

Since: base-4.7.0.0

Minimal complete definition

symbolSing