The following piece of code is accepted by hugs data Record = MkRecord { field :: Int } v = MkRecord { field = 10 } but when i also include a class with the same name as the constructor class MkRecord a I get the following error: Dependency analysis ERROR "D:\test.hs":775 - Constructor "MkRecord" does not have selected fields in MkRecord{field = 10} If I try v = MkRecord 10 instead, I get an internal error: Type checking INTERNAL ERROR: typeAp1 (¯`·.¸¸.-> pepeg <-.¸¸.·´¯)
Thanks for reporting this, sorry for being slow in responding. The bug has now been fixed. --sigbjorn ----- Original Message ----- From: "Pepe Gallardo" <pepeg@lcc.uma.es> To: <hugs-bugs@haskell.org> Sent: Thursday, October 04, 2001 02:46 Subject: bug using records
The following piece of code is accepted by hugs
data Record = MkRecord { field :: Int }
v = MkRecord { field = 10 }
but when i also include a class with the same name as the constructor
class MkRecord a
I get the following error:
Dependency analysis ERROR "D:\test.hs":775 - Constructor "MkRecord" does not have selected fields in MkRecord{field = 10}
If I try
v = MkRecord 10
instead, I get an internal error:
Type checking INTERNAL ERROR: typeAp1
(¯`·.¸¸.-> pepeg <-.¸¸.·´¯)
_______________________________________________ Hugs-Bugs mailing list Hugs-Bugs@haskell.org http://www.haskell.org/mailman/listinfo/hugs-bugs
participants (2)
-
Pepe Gallardo -
Sigbjorn Finne