semigroups-0.8.5: Haskell 98 semigroups

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

Numeric.Natural.Internal

Description

This module exposes the potentially unsafe operations that are sometimes needed for efficiency: The Natural data constructor and unsafePred.

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

unsafePred :: n -> nSource