EarthCitizen / escape-artist

A Haskell library for text decoration with ANSI escape sequences made easy
BSD 3-Clause "New" or "Revised" License
10 stars 1 forks source link

Implement Semigroup for base >= 4.9 #11

Open EarthCitizen opened 7 years ago

EarthCitizen commented 7 years ago

Need to implement Semigroup apart from Monoid for base >= 4.9 as in the example below:

#if MIN_VERSION_base(4,9,0)
instance Semigroup ByteString where
    (<>)    = append
#endif
EarthCitizen commented 7 years ago

See migration guide for GHC 8.0:

https://ghc.haskell.org/trac/ghc/wiki/Migration/8.0