Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type family KnownKindVal (nat :: Type) where ...
- type family KnownTypeVal (t :: k) where ...
- class KnownType t where
- fromType :: KnownTypeVal t
- fromType' :: forall t s. (KnownType t, Convertible' (KnownTypeVal t) s) => s
- class KnownNat (n :: Nat)
- class KnownSymbol (n :: Symbol)
Documentation
type family KnownKindVal (nat :: Type) where ... Source #
KnownKindVal Nat = Integer | |
KnownKindVal Symbol = String | |
KnownKindVal t = t |
type family KnownTypeVal (t :: k) where ... Source #
KnownTypeVal (t :: k) = KnownKindVal k |
class KnownType t where Source #
fromType :: KnownTypeVal t Source #
Instances
KnownNat t => KnownType (t :: Nat) Source # | |
Defined in Type.Known fromType :: KnownTypeVal t Source # | |
KnownSymbol t => KnownType (t :: Symbol) Source # | |
Defined in Type.Known fromType :: KnownTypeVal t Source # |
fromType' :: forall t s. (KnownType t, Convertible' (KnownTypeVal t) s) => s Source #
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
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
symbolSing