numhask-prelude-0.0.2.0: A numeric prelude

Safe HaskellSafe
LanguageHaskell2010

NumHask.Prelude

Contents

Description

A prelude for NumHask

Synopsis

Backend

NumHask imports Protolude as the prelude and replaces much of the Num heirarchy in base. Usage of Semigroup and Monoid has been avoided to retain basic compatability.

module Protolude

(<>) :: Semigroup a => a -> a -> a infixr 6 #

An associative operation.

(a <> b) <> c = a <> (b <> c)

If a is also a Monoid we further require

(<>) = mappend

Algebraic Heirarchy

Re-defines the numeric tower.

Instances for Int, Integer, Float, Double, Bool and Complex are supplied.