Commit 6c23303f authored by malcolm's avatar malcolm
Browse files

[project @ 2001-03-09 14:47:17 by malcolm]

Example infix/fndecl should now compile and run with ghc.  It wasn't
intended to test for ambiguous type variables - just for the
    (a1 `op` a2) a3 = ...
definition style, which nhc98 still fails to parse.
parent 9835a322
......@@ -3,12 +3,9 @@ include ($confdir ++ "/../singlefile-macros.T")
expect pass
pretest_cleanup()
$res = simple_compile_Main()
simple_build_Main()
$res = simple_run_Main()
pass when
$tool contains "ghc"
&& contents("fndecl.comp.stdout") contains "Ambiguous type variable"
-- put a pass clause here for NHC
pass when contents("fndecl.run.stdout") == contents("fndecl.expected.stdout")
fail when otherwise
......@@ -7,4 +7,4 @@ infixr 5 <>
Nothing -> Nothing
Just a2 -> m2 a2
main = print ((const Nothing <> Just) 1)
main = print ((Just <> Just) 1)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment