[GHC] #14837: Semigroup and Monoid instances for ST