Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- data Unary
- data Un x
- data Zero
- data Succ x
- zero :: Proxy Zero
- succ :: Proxy n -> Proxy (Succ n)
- newtype Singleton n = Singleton Integer
- singleton :: Natural n => Singleton n
- singletonFromProxy :: Natural n => Proxy n -> Singleton n
- integerFromSingleton :: Natural n => Singleton n -> Integer
- integralFromSingleton :: (Natural n, Num a) => Singleton n -> a
- class Natural n where
- class Natural n => Positive n where
- type family x :+: y
- type family x :*: y
Documentation
singletonFromProxy :: Natural n => Proxy n -> Singleton n Source
integerFromSingleton :: Natural n => Singleton n -> Integer Source
integralFromSingleton :: (Natural n, Num a) => Singleton n -> a Source