yap: yet another prelude - a simplistic refactoring with algebraic classes
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
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
0.0: initial version
Fractional, as it isn't well-behaved for all fields. Removed
|Versions [RSS] [faq]||0.0, 0.1, 0.2|
|Dependencies||base (>=4.5 && <6) [details]|
|Author||Ross Paterson <firstname.lastname@example.org>|
|Maintainer||Ross Paterson <email@example.com>|
|Revised||Revision 1 made by RossPaterson at 2021-07-10T09:33:28Z|
|Uploaded||by RossPaterson at 2012-02-03T22:21:07Z|
|Downloads||2294 total (3 in the last 30 days)|
|Rating||(no votes yet) [estimated by Bayesian average]|
Docs uploaded by user
Build status unknown [no reports yet]
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.