tfp-1.0.0.2: Type-level integers, booleans, lists using type families

Safe HaskellSafe
LanguageHaskell2010

Type.Data.Num.Decimal.Digit

Documentation

newtype Singleton d Source

Constructors

Singleton Int 

class C d where Source

Methods

switch :: f Dec0 -> f Dec1 -> f Dec2 -> f Dec3 -> f Dec4 -> f Dec5 -> f Dec6 -> f Dec7 -> f Dec8 -> f Dec9 -> f d Source

class C d => Pos d where Source

Methods

switchPos :: f Dec1 -> f Dec2 -> f Dec3 -> f Dec4 -> f Dec5 -> f Dec6 -> f Dec7 -> f Dec8 -> f Dec9 -> f d Source

reify :: Integer -> (forall d. C d => Proxy d -> w) -> w Source

reifyPos :: Integer -> (forall d. Pos d => Proxy d -> w) -> w Source

type family ToUnary n Source

Instances