Data.Fixed.Fixed constructor

David Menendez dave at
Fri Jul 24 02:03:52 EDT 2009

On Fri, Jul 24, 2009 at 1:44 AM, Ashley Yakeley<ashley at> wrote:
> On Fri, 2009-07-24 at 00:58 -0400, David Menendez wrote:
>> It depends on how abstract you want Fixed to be. If you use the
>> derived Data instances, then gshow and gread (from Data.Generics.Text)
>> expose the implementation.
> But I'm going to expose the MkFixed constructor anyway. What's lost with
> a derived instance?

If the constructor is already exposed, then you don't lose abstraction
with a derived instance.

Out of curiosity, what made you decide to expose the constructor?

Dave Menendez <dave at>

More information about the Libraries mailing list