A very cryptic error message, probably referring to the source code of ghc itself.
It was caused by an empty *.hi for an imported module which happened to be in the
working directory.
Side remark: if ghc still has run-time errors, why doesn't it decorate them
to make obvously different from the
The following code is accepted by hugs and hbc, but produces an error in ghc-4.04-1
-
module Bug where
infix 5 |-
infix 9 :=
data Equal = Char := Int
(|-) :: Int - Equal - Bool
0 |- x:=y = 1 |- x:=y
2 |- (x:=y) = 0 |- x:=y
_ |- _ = False
-
The following code is accepted by hugs and hbc, but produces
an error in ghc-4.04-1
-
module Bug where
infix 5 |-
infix 9 :=
data Equal = Char := Int
(|-) :: Int - Equal - Bool
0 |- x:=y = 1 |- x:=y
2 |- (x:=y) = 0 |- x:=y
_ |- _ = False
when attempting to bootstrap under netbsd-current:
==fptools== gmake all -r;
in /orb/s/netbsd/usr/pkgsrc/lang/ghc/work.i386/fptools/ghc/lib/misc
--
--
rm -f CString.o ; if [ ! -d CString ]; then mkdir CString;
else
Hi Simon, I eventually managed to produce an executable (but see
below) with the following patches (note that the address family
enumeration below is *not* identical to freebsd):
$NetBSD$
--- ghc/lib/misc/SocketPrim.lhs Wed Sep 15 09:06:26 1999
+++ ghc/lib/misc/SocketPrim.lhs Tue Dec 14
--- /p/lang/ghc/old/fptools/MakefileWed Sep 15 09:03:33 1999
+++ MakefileWed Dec 15 16:04:58 1999
@@ -15,7 +15,7 @@
# on whether we do `make install' or not. Having a $(ifeq ... ) would
# be preferable..
CURRENT_TARGET = $(MAKECMDGOALS)
-SUBDIRS = $(shell if (test x$(CURRENT_TARGET) =
*** apologies for multiple copies ***
CL2000
First International Conference on Computational Logic
Imperial College, London, UK, 24th to 28th July, 2000
Hi,
What do folk out there think to the idea of having a std module
in Haskell which contains dynamic environment info.
things I mean are
progName :: String
args:: String
and maybe funs like
getProperties :: FileName - PropertyLookup
(obviously this getProperties fn whould have to