No error report, on invalid data declaration
22 Aug
2006
22 Aug
'06
9:02 p.m.
Hi, With the code:
import qualified Data.Map as Map data Test = Map.Map Int Int
There is no error at compile time by Hugs. There is in GHC: test.hs:6:12: Not in scope: data constructor `Map.Map' Of course, the GHC error message is not really very good, but Hugs compiles it fine - I have no idea what the runtime behaviour is. I guess this is an invalid Haskell program, and Hugs is at fault? Thanks Neil
7219
Age (days ago)
7219
Last active (days ago)
0 comments
1 participants
participants (1)
-
Neil Mitchell