[Haskell-beginners] Expressing the idea of a group in Haskell

Stephen Tetley stephen.tetley at gmail.com
Wed Mar 16 13:04:45 CET 2011

Pragmatically you might want two classes - AdditiveGroup and

There is a lot of work in this area such as the NumericPrelude on
Hackage and Jerzy Karczmarczuk's paper "Functional Programming and
Mathematical Objects" [link below]. Numeric hierarchies expose
problems for Haskell's class system, hence everyone complains about
the Num classes but no-one has been able to fix them.


More information about the Beginners mailing list