Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Nat
numbers.
This module is designed to be imported qualified.
Synopsis
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 Source # gunfold :: ( forall b r. Data b => c (b -> r) -> c r) -> ( forall r. r -> c r) -> Constr -> c Nat Source # toConstr :: Nat -> Constr Source # dataTypeOf :: Nat -> DataType Source # dataCast1 :: Typeable t => ( forall d. Data d => c (t d)) -> Maybe (c Nat ) Source # dataCast2 :: Typeable t => ( forall d e. ( Data d, Data e) => c (t d e)) -> Maybe (c Nat ) Source # gmapT :: ( forall b. Data b => b -> b) -> Nat -> Nat Source # gmapQl :: (r -> r' -> r) -> r -> ( forall d. Data d => d -> r') -> Nat -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> ( forall d. Data d => d -> r') -> Nat -> r Source # gmapQ :: ( forall d. Data d => d -> u) -> Nat -> [u] Source # gmapQi :: Int -> ( forall d. Data d => d -> u) -> Nat -> u Source # gmapM :: Monad m => ( forall d. Data d => d -> m d) -> Nat -> m Nat Source # gmapMp :: MonadPlus m => ( forall d. Data d => d -> m d) -> Nat -> m Nat Source # gmapMo :: MonadPlus m => ( forall d. Data d => d -> m d) -> Nat -> m Nat Source # |
|
Num Nat Source # | |
Ord Nat Source # | |
Real Nat Source # | |
Show Nat Source # |
To see explicit structure, use
|
Function Nat Source # | |
Arbitrary Nat Source # | |
CoArbitrary Nat Source # | |
NFData Nat Source # | |
Hashable Nat Source # | |
TestEquality SNat Source # | |
Defined in Data.Type.Nat |
fromNatural :: Natural -> Nat Source #
Showing
explicitShow :: Nat -> String Source #