Re: Error importing Control.Monad (liftM2) with newtype

Malcolm Wallace <[email protected]> Mon, 11 Apr 2005 15:27:27 +0100
Newsgroups gmane.comp.lang.haskell.nhc.bugs
Organization Dept of Computer Science, University of York
Message-ID <[email protected]>
This is a multi-part message in MIME format.

--Multipart=_Mon__11_Apr_2005_15_27_27_+0100_jw4jg.+2JEE.CfMh
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Ian Lynagh <[email protected]> writes:

> 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

--Multipart=_Mon__11_Apr_2005_15_27_27_+0100_jw4jg.+2JEE.CfMh
Content-Type: text/plain;
 name="patch-1.18-newtype"
Content-Disposition: attachment;
 filename="patch-1.18-newtype"
Content-Transfer-Encoding: base64

SW5kZXg6IHNyYy9jb21waWxlcjk4L1JlbmFtZUxpYi5ocw0KPT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQ0KUkNTIGZpbGU6
IC9ob21lL2N2cy9yb290L25oYzk4L3NyYy9jb21waWxlcjk4L1JlbmFtZUxpYi5ocyx2DQpyZXRy
aWV2aW5nIHJldmlzaW9uIDEuMzENCmRpZmYgLXUgLXIxLjMxIFJlbmFtZUxpYi5ocw0KLS0tIHNy
Yy9jb21waWxlcjk4L1JlbmFtZUxpYi5ocwkyMiBEZWMgMjAwNCAxMjo1ODozNSAtMDAwMAkxLjMx
DQorKysgc3JjL2NvbXBpbGVyOTgvUmVuYW1lTGliLmhzCTExIEFwciAyMDA1IDE0OjI0OjQ5IC0w
MDAwDQpAQCAtMjE2LDcgKzIxNiw3IEBADQogCSAgICAgIChjb25pOl8pIC0+DQogCQkgY2FzZSAo
bnRJIC4gZHJvcEp1c3QgLiBsb29rdXBBVCBzdCApIGNvbmkgb2YNCiAgIAkgICAgICAgICAgIChO
ZXdUeXBlIF8gW10gXyBbTlRjb25zIGMgXyBfLHJlc10pIC0+IChzeW5UeXBlLCh1LGMpOm5ld1R5
cGUpDQotICAJICAgICAgICAgICAoTmV3VHlwZSBfIFtdIF8gW05UdmFyIHYgXyxyZXNdKSAtPiAo
c3luVHlwZSwodSx2KTpuZXdUeXBlKQ0KKyAgCSAgICAgICAgICAgKE5ld1R5cGUgXyBbXSBfIFtO
VHZhciB2IF8scmVzXSkgLT4gKHN5blR5cGUsICAgICAgbmV3VHlwZSkNCiAgIAkgICAgICAgICAg
IChOZXdUeXBlIF8gW10gXyBbTlRhcHAgdjEgdjIscmVzXSkgLT4gKHN5blR5cGUsbmV3VHlwZSkN
CiAJCQktLSBeIE1XIGhhY2s6IG9taXRzIHBvdGVudGlhbCBjaXJjdWxhcml0eSBjaGVjayENCiAg
IAkgICAgICAgICAgIChOZXdUeXBlIF8gW10gXyAoXzpfOl8pKSAtPg0K

--Multipart=_Mon__11_Apr_2005_15_27_27_+0100_jw4jg.+2JEE.CfMh
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Nhc-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/nhc-bugs

--Multipart=_Mon__11_Apr_2005_15_27_27_+0100_jw4jg.+2JEE.CfMh--