BSD-3-Clause licensed by Tony Day
Maintained by [email protected]
This version can be pinned in stack with:numhask-0.7.1.0@sha256:f9cc794a16a3fa491e7dab16be7cb143bc9a59c829753946b92cb0a065a44bf9,2350

numhask

Build Status Hackage

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

The numeric class constellation looks somewhat like:

nh

Usage

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

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

Develop

stack build --test --haddock --file-watch

Changes

0.7.0

  • GHC 8.10.2 support
  • Modules NumHask.Algebra.Abstract.* renamed to NumHask.Algebra.*
  • Renamed Normed to Norm and added basis
  • Removed Metric and added distance
  • Added Direction, Polar, polar, coord; streamlined Complex
  • Removed NumHask.Data.Pair
  • Fixed FromIntegral and FromRational to work in well with rebindable syntax.
  • Added fundeps to Norm, Direction
  • Integrated NumHask.Algebra.Action into NumHask.Algebra.Module
  • Added atan2
  • Added doctests and laws
  • Improved haddocks
  • Made (^) a monomorphic a -> Int -> a and accept negative Ints

0.6.0

  • GHC 8.10.1 support