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

Safe HaskellSafe-Inferred
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

Instances

class C d => Pos d where Source

Methods

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

data Dec0 Source

Instances

data Dec1 Source

Instances

data Dec2 Source

Instances

data Dec3 Source

Instances

data Dec4 Source

Instances

data Dec5 Source

Instances

data Dec6 Source

Instances

data Dec7 Source

Instances

data Dec8 Source

Instances

data Dec9 Source

Instances

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

type ToUnary Dec9 = U9 
type ToUnary Dec8 = U8 
type ToUnary Dec7 = U7 
type ToUnary Dec6 = U6 
type ToUnary Dec5 = U5 
type ToUnary Dec4 = U4 
type ToUnary Dec3 = U3 
type ToUnary Dec2 = U2 
type ToUnary Dec1 = U1 
type ToUnary Dec0 = U0