natural-0.1.0.1: Natural number

Safe HaskellSafe
LanguageHaskell2010

Natural

Documentation

data Natural Source #

Instances
Eq Natural Source # 
Instance details

Defined in Natural

Methods

(==) :: Natural -> Natural -> Bool #

(/=) :: Natural -> Natural -> Bool #

Ord Natural Source # 
Instance details

Defined in Natural

Show Natural Source # 
Instance details

Defined in Natural

Semigroup Natural Source # 
Instance details

Defined in Natural

Monoid Natural Source # 
Instance details

Defined in Natural

AsNatural Natural Source # 
Instance details

Defined in Natural

HasNatural Natural Source # 
Instance details

Defined in Natural

class HasNatural a where Source #

Minimal complete definition

natural

Instances
HasNatural MinNatural Source # 
Instance details

Defined in Natural

HasNatural MaxNatural Source # 
Instance details

Defined in Natural

HasNatural ProductNatural Source # 
Instance details

Defined in Natural

HasNatural Natural Source # 
Instance details

Defined in Natural

class AsNatural a where Source #

Minimal complete definition

_Natural

Instances
AsNatural Int Source # 
Instance details

Defined in Natural

AsNatural Integer Source # 
Instance details

Defined in Natural

AsNatural Word Source # 
Instance details

Defined in Natural

AsNatural MinNatural Source # 
Instance details

Defined in Natural

AsNatural MaxNatural Source # 
Instance details

Defined in Natural

AsNatural ProductNatural Source # 
Instance details

Defined in Natural

AsNatural Natural Source # 
Instance details

Defined in Natural

Integral a => AsNatural (Identity a) Source # 
Instance details

Defined in Natural

Integral a => AsNatural (Const a b) Source # 
Instance details

Defined in Natural

newtype ProductNatural Source #

Constructors

ProductNatural Natural 
Instances
Eq ProductNatural Source # 
Instance details

Defined in Natural

Ord ProductNatural Source # 
Instance details

Defined in Natural

Show ProductNatural Source # 
Instance details

Defined in Natural

Semigroup ProductNatural Source # 
Instance details

Defined in Natural

Monoid ProductNatural Source # 
Instance details

Defined in Natural

Wrapped ProductNatural Source # 
Instance details

Defined in Natural

Associated Types

type Unwrapped ProductNatural :: * #

AsNatural ProductNatural Source # 
Instance details

Defined in Natural

HasNatural ProductNatural Source # 
Instance details

Defined in Natural

ProductNatural ~ a => Rewrapped ProductNatural a Source # 
Instance details

Defined in Natural

type Unwrapped ProductNatural Source # 
Instance details

Defined in Natural

newtype MaxNatural Source #

Constructors

MaxNatural Natural 
Instances
Eq MaxNatural Source # 
Instance details

Defined in Natural

Ord MaxNatural Source # 
Instance details

Defined in Natural

Show MaxNatural Source # 
Instance details

Defined in Natural

Semigroup MaxNatural Source # 
Instance details

Defined in Natural

Wrapped MaxNatural Source # 
Instance details

Defined in Natural

Associated Types

type Unwrapped MaxNatural :: * #

AsNatural MaxNatural Source # 
Instance details

Defined in Natural

HasNatural MaxNatural Source # 
Instance details

Defined in Natural

MaxNatural ~ a => Rewrapped MaxNatural a Source # 
Instance details

Defined in Natural

type Unwrapped MaxNatural Source # 
Instance details

Defined in Natural

newtype MinNatural Source #

Constructors

MinNatural Natural 
Instances
Eq MinNatural Source # 
Instance details

Defined in Natural

Ord MinNatural Source # 
Instance details

Defined in Natural

Show MinNatural Source # 
Instance details

Defined in Natural

Semigroup MinNatural Source # 
Instance details

Defined in Natural

Wrapped MinNatural Source # 
Instance details

Defined in Natural

Associated Types

type Unwrapped MinNatural :: * #

AsNatural MinNatural Source # 
Instance details

Defined in Natural

HasNatural MinNatural Source # 
Instance details

Defined in Natural

MinNatural ~ a => Rewrapped MinNatural a Source # 
Instance details

Defined in Natural

type Unwrapped MinNatural Source # 
Instance details

Defined in Natural

length :: Foldable f => f a -> Natural Source #

replicate :: Natural -> a -> [a] Source #

take :: Natural -> [a] -> [a] Source #

drop :: Natural -> [a] -> [a] Source #

splitAt :: Natural -> [a] -> ([a], [a]) Source #

(!!) :: [a] -> Natural -> Maybe a Source #

findIndices :: (a -> Bool) -> [a] -> [Natural] Source #

findIndex :: (a -> Bool) -> [a] -> Maybe Natural Source #

elemIndices :: Eq a => a -> [a] -> [Natural] Source #

elemIndex :: Eq a => a -> [a] -> Maybe Natural Source #