nats-0.1.3: Natural numbers

Portabilityportable
Stabilityprovisional
MaintainerEdward Kmett <ekmett@gmail.com>
Safe HaskellSafe-Inferred

Numeric.Natural

Description

Natural numbers.

Synopsis

Documentation

class Integral n => Whole n whereSource

A refinement of Integral to represent types that do not contain negative numbers.

Methods

toNatural :: n -> NaturalSource

natural :: a -> (a -> a) -> Natural -> aSource

Church decoding