[GHC] #12069: Possible type inference regression: "Expected a type, but 'a' has kind 'k0'"