diff options
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/tcfail171.hs')
-rw-r--r-- | testsuite/tests/typecheck/should_fail/tcfail171.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/tcfail171.hs b/testsuite/tests/typecheck/should_fail/tcfail171.hs new file mode 100644 index 0000000000..fb8e4b652c --- /dev/null +++ b/testsuite/tests/typecheck/should_fail/tcfail171.hs @@ -0,0 +1,9 @@ +module ShouldFail where + +-- This one made GHC fall over on implication constraints +-- Silly, but one more test does no harm + +import Text.Printf + +phex :: a -> b +phex x = printf "0x%x" x |