[GHC] #12792: Wrong error message when using a data type as a class instance head