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

Fergus Henderson fjh at cs.mu.OZ.AU
Wed Sep 25 14:51:22 AEST 2002


On 25-Sep-2002, Ralph Becket <rafe at cs.mu.OZ.AU> wrote:
> Mark Brown, Tuesday, 24 September 2002:
> > Allow typeclass constraints on ground types.
> 
> Does this mean we can now write things like
> 
> :- type hash_table(K, V) <= hashable(K).

No.

> or only
> 
> :- instance hashable(int) where [...].

No.

> or have I misunderstood something?

It just means you can write things like

	:- pred p(...) <= hashable(int).

-- 
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-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