No error report, on invalid data declaration
23 Aug
2006
23 Aug
'06
5:02 a.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
7277
Age (days ago)
7277
Last active (days ago)
0 comments
1 participants
participants (1)
-
Neil Mitchell