The yap package

[Tags: bsd3, library]

A simple refactoring of the Prelude numeric classes, attempting backwards compatibility for clients by defining a few algebraic classes as superclasses of the Haskell 98 numeric classes. This yields the following class hierarchy (grey classes are unchanged):

Prelude.YAP is an almost-compatible replacement for the standard Haskell Prelude, as long as you're not defining instances of the numeric classes (though defaulting will be affected). When importing it, turn on RebindableSyntax.

Data.YAP.Algebra contains just the new classes; you'll need to import it if you want access to the new names, including to define instances.

Other modules contain some example instances, including for the existing types Complex and Ratio.

History:


Properties

Versions0.0, 0.1, 0.2
Dependenciesbase (==4.5.*)
LicenseBSD3
AuthorRoss Paterson <ross@soi.city.ac.uk>
MaintainerRoss Paterson <ross@soi.city.ac.uk>
CategoryAlgebra, Prelude
Upload dateFri Feb 3 22:21:07 UTC 2012
Uploaded byRossPaterson
DistributionsNixOS:0.2
Downloads152 total (23 in last 30 days)

Modules

Downloads

Maintainers' corner

For package maintainers and hackage trustees