[m-rev.] for discussion: subtypes documentation
Fergus Henderson
fjh at cs.mu.OZ.AU
Wed Nov 27 18:23:46 AEDT 2002
On 26-Nov-2002, Mark Brown <dougl at cs.mu.OZ.AU> wrote:
> Incidentally, how do I write an inst that covers some constructor
> containing existentially type data? If I had the type
>
> :- type foo
> ---> some [T] (f(T) => c(T))
> ; g(int).
>
> how would I write the inst that covers only elements of foo whose top
> functor is f/1?
`bound(f(ground))'.
Existential type quantifiers and class constraints don't have any
effect on insts.
--
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