[mercury-users] importing submodules

Michael Day mikeday at yeslogic.com
Mon Dec 2 13:03:19 AEDT 2002


> One advantage is that you don't need to put type class constraints all
> over your code.

Perhaps it would be handy to have a mechanism similar to the recent 
subtype proposals that combine a type and an inst, to be able to declare 
constrained types to save (hah) typing.

:- type foo == T <= foo(T).

Probably wouldn't work though...

Michael

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



More information about the users mailing list