numhask-0.1.1: A numeric prelude

Safe HaskellNone
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

Algebraic Heirarchy

Re-defines the numeric tower.

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

Representable Functors over numbers

NumHask uses Representable functors over number classes to supply useful vectors and matrices that are themselves numbers (ie satisfy the class laws).

Vector and Matrix instances are supplied with shape held at the type-level.