[GHC] #8474: Extremely slow compilation of a program with multiply implicit parameters