[m-rev.] for review: constraints on ground types

Ralph Becket rafe at cs.mu.OZ.AU
Wed Sep 25 09:27:06 AEST 2002


Mark Brown, Tuesday, 24 September 2002:
> Hi,
> 
> This is in response to the issue that came up recently on this list
> regarding allowing typeclass constraints on ground types.  This is for
> review by anyone.
> 
> Cheers,
> Mark.
> 
> Estimated hours taken: 3
> Branches: main
> 
> Allow typeclass constraints on ground types.

Does this mean we can now write things like

:- type hash_table(K, V) <= hashable(K).

or only

:- instance hashable(int) where [...].

or have I misunderstood something?

- Ralph
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list