tcfail015.hs:7: No instance for `Num Bool' arising from the literal `2' at tcfail015.hs:7 In the right-hand side of an equation for `g': 2 Compilation had errors