summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail171.hs
blob: fb8e4b652c394fee072c7ef4333cc7fd41664d16 (plain)
1
2
3
4
5
6
7
8
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