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 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
.
Modules
[Index]
Downloads
- yap-0.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.0, 0.1, 0.2 |
---|---|
Dependencies | base (>=4.4 && <5) [details] |
License | BSD-3-Clause |
Author | Ross Paterson <ross@soi.city.ac.uk> |
Maintainer | Ross Paterson <ross@soi.city.ac.uk> |
Uploaded | by RossPaterson at 2011-08-10T05:39:27Z |
Distributions | NixOS:0.2 |
Reverse Dependencies | 2 direct, 0 indirect [details] |
Downloads | 2578 total (7 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs uploaded by user Build status unknown [no reports yet] |