Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Nat
numbers.
This module is designed to be imported qualified.
Natural, Nat numbers
Nat natural numbers.
Better than GHC's built-in Nat
for some use cases.
Instances
Enum Nat Source # | |
Eq Nat Source # | |
Integral Nat Source # | |
Data Nat Source # | |
Defined in Data.Nat gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Nat -> c Nat # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Nat # dataTypeOf :: Nat -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Nat) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Nat) # gmapT :: (forall b. Data b => b -> b) -> Nat -> Nat # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Nat -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Nat -> r # gmapQ :: (forall d. Data d => d -> u) -> Nat -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Nat -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Nat -> m Nat # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Nat -> m Nat # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Nat -> m Nat # | |
Num Nat Source # | |
Ord Nat Source # | |
Real Nat Source # | |
Defined in Data.Nat toRational :: Nat -> Rational # | |
Show Nat Source # | To see explicit structure, use |
NFData Nat Source # | |
Hashable Nat Source # | |
TestEquality SNat Source # | |
Defined in Data.Type.Nat |
fromNatural :: Natural -> Nat Source #
Showing
explicitShow :: Nat -> String Source #