[nhc-bugs] 1.10 build fails with ghc-5.02.1

Malcolm Wallace Malcolm.Wallace@cs.york.ac.uk
Tue, 22 Jan 2002 13:28:41 +0000


> The build fails with ghc-5.02.1 on a freebsd 4.4-stable machine:

> gmake[2]: Entering directory `/var/tmp/src/nhc98-1.10/src/prelude/LowB'
>     /var/tmp/src/nhc98-1.10/script/nhc98 -cpp -p -c +CTS -part -redefine -CTS
>     -P..  -P../PreludeIO -P../IO -prelude -o
>     /var/tmp/src/nhc98-1.10/targets/ix86-FreeBSD/objp/prelude/LowB/PrimOpenSocket.p.o
>     PrimOpenSocket.hs
> 
> Fail: GcodeFix.hs:165: Non-exhaustive patterns in function nthcon

Try the following patch.  If it doesn't solve the problem, let me know.
Regards,
    Malcolm

===================================================================
diff -u -r1.2 -r1.3 src/prelude/LowB/PrimOpenSocket.hs
--- src/prelude/LowB/PrimOpenSocket.hs	2001/11/20 16:46:44	1.2
+++ src/prelude/LowB/PrimOpenSocket.hs	2001/12/19 14:54:16	1.3
@@ -1,6 +1,6 @@
 module Prelude(cOpenSocket,primOpenSocket,SocketType) where
 
-import IO
+import IO hiding (IO(..))
 import CString
 import DIO
 import DSocket