2 tcfail031.hs:3: Couldn't match the type
3 `PrelBase.Bool' against `PrelBase.Char'
4 Expected: `PrelBase.Bool'
5 Inferred: `PrelBase.Char'
6 In a predicate expression:
8 In an equation for function `f':
9 `f x = if 'a' then 1 else 2'
12 Compilation had errors