[project @ 1997-05-19 00:30:56 by sof]
authorsof <unknown>
Mon, 19 May 1997 00:30:57 +0000 (00:30 +0000)
committersof <unknown>
Mon, 19 May 1997 00:30:57 +0000 (00:30 +0000)
Check Main.main type

GHC_ONLY/frontend005/Main.hs [new file with mode: 0644]
GHC_ONLY/frontend005/Makefile [new file with mode: 0644]

diff --git a/GHC_ONLY/frontend005/Main.hs b/GHC_ONLY/frontend005/Main.hs
new file mode 100644 (file)
index 0000000..a59734c
--- /dev/null
@@ -0,0 +1,8 @@
+{-     SHOULD FAIL
+
+       GHC 2.02 failed to realise that this bogus
+       program didn't have the right type for main
+-}
+
+main           =  2
+main           =  putStrLn "hello world"
diff --git a/GHC_ONLY/frontend005/Makefile b/GHC_ONLY/frontend005/Makefile
new file mode 100644 (file)
index 0000000..cfa1f48
--- /dev/null
@@ -0,0 +1,4 @@
+TOP = ../..
+include $(TOP)/mk/boilerplate.mk
+include $(TOP)/mk/target.mk
+