T12055a.hs:28:1: error: • Non type-variable argument in the constraint: Category (Dom f) • In the context: (Category (Dom f), Category (Cod f)) While checking the super-classes of class ‘Functor’ In the class declaration for ‘Functor’ Suggested fix: Perhaps you intended to use FlexibleContexts