[GHC] #12107: Strange behavior of Foldable (,) a