Update Semigroup instances for ghc 7.8.2+ compatibility

As per https://github.com/music-suite/music-score/issues/294.