Haskell 1.2 report on page 33 says that
> If the two instance declarations read like this
>
> instance Num a => Foo [a] where ...
>
> instance (Eq a, Text a) => Bar [a] where ...
>
> then the program would be illegal.
I cannot find out the exact reason for this restriction. If
you allow this , then any pathological case can still be
found out during type checking. I checked this in gofer
and it works.
[EMAIL PROTECTED]
- No Subject Gavin Wraith
- No Subject System PRIVILEGED Account
- No Subject Operator
- No Subject Paul Hudak
- No Subject Ken Sailor
- No Subject N K Anil
- No Subject N K Anil
- No Subject Chih-Ping Chen
- No Subject John P Haskell
- No Subject Steve Stevenson
- No Subject richard
- No Subject Erik Meijer
- No Subject Roman Garcia
- No Subject Pablo E. Martinez Lopez
- No Subject Simon L Peyton Jones
- No Subject david
