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 the predicate expression `'a''
7 In an equation for function `f': `f x = if 'a' then 1 else 2'
10 Compilation had errors