[mercury-users] overlapping instance declarations
Michael Day
mcda at students.cs.mu.oz.au
Tue Aug 8 23:06:49 AEST 2000
<interesting commentary on type class semantics>
> This is a very direct, very simple way of specifying the declarative
> and operational semantics of code using type classes.
Must the semantics of type classes be specified in a way that does not
involve transformation, such as adding higher order arguments to
predicates that take a type class constrained variable as input and so
forth?
If so, then it would seem very difficult to specify the semantics of type
classes with module qualified instances, which require an explicit
connection from the point at which a value was passed in and the point at
which a particular type class method was called.
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