[project @ 2001-04-05 11:48:59 by simonpj]
authorsimonpj <unknown>
Thu, 5 Apr 2001 11:48:59 +0000 (11:48 +0000)
committersimonpj <unknown>
Thu, 5 Apr 2001 11:48:59 +0000 (11:48 +0000)
Add tc120

ghc/tests/typecheck/should_compile/tc120.hs [new file with mode: 0644]

diff --git a/ghc/tests/typecheck/should_compile/tc120.hs b/ghc/tests/typecheck/should_compile/tc120.hs
new file mode 100644 (file)
index 0000000..11c64d8
--- /dev/null
@@ -0,0 +1,8 @@
+-- !!! Check that we can have a type for main that is more general than IO a
+
+-- main :: forall a.a   certainly also has type IO a, so it should be fine.
+
+module Main(main) where
+
+main :: a
+main = error "not much luck"