natural-number-1.0: Natural numbers tagged with a type-level representation of the number.

Data.NaturalNumber

Documentation

data N a whereSource

Constructors

NZero :: N Zero 
NSuccessorTo :: N n -> N (SuccessorTo n) 

Instances

EqT N 
Eq (N n) 
Show (N n) 
NaturalNumber n => Typeable (N n) 

data UnknownN whereSource

Constructors

UnknownN :: NaturalNumber n => N n -> UnknownN 

Instances