[1 of 1] Compiling Main ( prog.hs, prog.o )
prog.hs:14:15: error:
• Couldn't match type ‘'False’ with ‘'True’
Expected type: State 'True
Actual type: State 'False
• In the first argument of ‘turnOff’, namely ‘off’
In the expression: turnOff off
In an equation for ‘bad’: bad = turnOff off