/numhask

A haskell numeric prelude, providing a clean structure for numbers and operations that combine them.

Primary LanguageHaskellBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

numhask

Hackage Build Status

This package provides numeric classes alternate to the prelude as specified in haskell98.

The numeric class constellation looks somewhat like:

nh

Usage

{-# LANGUAGE RebindableSyntax #-}
import NumHask.Prelude

See the documentation in the NumHask module for a detailed overview.

NumHask.Prelude passes through the Prelude, with the exception of functions which include Num, Rational, Integral or Real constraints.