[GHC] #13368: Derive superclasses automatically if possible