T5951.hs:8:8: error: Illegal class instance: ā€˜A => B => C’ Class instances must be of the form context => C ty_1 ... ty_n where ā€˜C’ is a class