Data.Fixed.Fixed constructor

Ashley Yakeley ashley at
Mon Jul 27 18:34:03 EDT 2009

On Sun, 2009-07-26 at 14:54 +0300, Yitzchak Gale wrote:
> People want to be able to look at the haddocks/export list
> and see at a glance how to write neat, bullet-proof code.
> If someone uses the Data instance, they should be aware
> of the risks. But if you expose the constructor, it will
> cause average users of this module to do the wrong thing
> sometimes.

I'm not really seeing the problem, here. Ratio exposes its constructor,
and Fixed is much like Rational with a fixed denominator.


More information about the Libraries mailing list