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
Arbitrary Nat Source # | |
CoArbitrary Nat Source # | |
Function 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 :: forall r r'. (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 # | |
Enum Nat Source # | |
Num Nat Source # | |
Integral Nat Source # | |
Real Nat Source # | |
Defined in Data.Nat toRational :: Nat -> Rational # | |
Show Nat Source # | To see explicit structure, use |
NFData Nat Source # | |
Eq Nat Source # | |
Ord Nat Source # | |
Hashable Nat Source # | |
Universe Nat Source # |
Since: 0.1.2 |
Category LEProof Source # | The other variant ( |
TestEquality SNat Source # | |
Defined in Data.Type.Nat | |
EqP Fin Source # |
Since: 0.2.2 |
EqP SNat Source # | Since: 0.2.2 |
GNFData SNat Source # | Since: 0.2.1 |
Defined in Data.Type.Nat | |
GCompare SNat Source # | Since: 0.2.1 |
GEq SNat Source # | Since: 0.2.1 |
GShow Fin Source # | Since: 0.2.2 |
GShow SNat Source # | Since: 0.2.1 |
Defined in Data.Type.Nat gshowsPrec :: forall (a :: k). Int -> SNat a -> ShowS # | |
OrdP Fin Source # |
Since: 0.2.2 |
OrdP SNat Source # | Since: 0.2.2 |
fromNatural :: Natural -> Nat Source #
Showing
explicitShow :: Nat -> String Source #