Error importing Control.Monad (liftM2) with newtype

9 Apr
2005
9 Apr
'05
4:16 p.m.
This happens with both nhc98 1.16 and 1.18: $ cat Q.hs module Q () where import Control.Monad (liftM2) newtype A a = A a $ nhc98 -c Q.hs nhc98comp: isRealData InfoClass 1 Prelude.Monad IEnone \/ b . (1 b) [38,39,40,41] [] [(5,([],[])),(25,([],[])),(26,([],[]))] Thanks Ian

11 Apr
11 Apr
10:27 a.m.
Ian Lynagh
This happens with both nhc98 1.16 and 1.18:
$ cat Q.hs module Q () where import Control.Monad (liftM2) newtype A a = A a
$ nhc98 -c Q.hs nhc98comp: isRealData InfoClass 1 Prelude.Monad IEnone \/ b . (1 b) [38,39,40,41] [] [(5,([],[])),(25,([],[])),(26,([],[]))]
Good bug report. Tricky thing to find, but I tracked it down after a while using Hat. Patch attached. Regards, Malcolm
7345
Age (days ago)
7347
Last active (days ago)
1 comments
2 participants
participants (2)
-
Ian Lynagh
-
Malcolm Wallace