[m-dev.] Foreign type compare and unification
Kevin Glynn
glynn at info.ucl.ac.be
Sun May 19 21:19:21 AEST 2002
GHC supports 'Generic Classes', see
http://www.haskell.org/ghc/docs/latest/set/generic-classes.html
I'm sure I read about a proposal to extend GHC's deriving mechanism,
probably this was it but I don't have time to follow up the refs.
Hope this is helpful (and don't bother complaining to me about any
deficiencies - I'm just the messanger!)
k
Fergus Henderson writes:
> On 17-May-2002, Tyson Dowd <trd at cs.mu.OZ.AU> wrote:
> > On 15-May-2002, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> > > On 14-May-2002, Peter Ross <pro at missioncriticalit.com> wrote:
> > > > IMHO the typeclass approach with the deriving annotation from Haskell seems
> > > > the most elegant approach to me.
> > >
> > > Haskell's "deriving" annotation has the drawback that the language
> > > has a fixed list of classes for which you are allowed to write "deriving".
> > > The mechanism is not extensible.
> >
> > This is true. But I'm not sure what your point is. Why do you mention
> > this?
>
> My point is that the typeclass approach with the deriving annotation from
> Haskell does *not* seem to be the most elegant approach to me. Because the
> list of such classes is fixed and not extensible, it seems rather inelegant.
>
> --
> Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
> The University of Melbourne | of excellence is a lethal habit"
> WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
> --------------------------------------------------------------------------
> mercury-developers mailing list
> Post messages to: mercury-developers at cs.mu.oz.au
> Administrative Queries: owner-mercury-developers at cs.mu.oz.au
> Subscriptions: mercury-developers-request at cs.mu.oz.au
> --------------------------------------------------------------------------
>
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list