complex-generic

complex numbers with non-mandatory RealFloat

https://code.mathr.co.uk/complex-generic

Latest on Hackage:0.1.1.1@rev:4

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD-3-Clause licensed by Claude Heiland-Allen
Maintained by [email protected]

The base package's Data.Complex has a RealFloat requirement for almost all operations, which rules out uses such as 'Complex Rational' or 'Complex Integer'. This package provides an alternative, putting most operations into additional type classes. Generating instances with template haskell helps reduce excessive boilerplate and avoids instance overlap.