[GHC] #13404: Derive instances for classes with associated types