GHC 8.4 implements the Semigroup-Monoid proposal which makes Semigroup a superclass of Monoid. In GHC 8.4 I get this error:
src/Data/Geometry/Geos/Types.hs:70:10: error:
• No instance for (Semigroup LinearRing)
arising from the superclasses of an instance declaration
• In the instance declaration for ‘Monoid LinearRing’
|
70 | instance Monoid LinearRing where
| ^^^^^^^^^^^^^^^^^
GHC 8.4 implements the Semigroup-Monoid proposal which makes Semigroup a superclass of Monoid. In GHC 8.4 I get this error:
Which corresponds to this declaration https://github.com/ewestern/geos/blob/e9cff92e6b583a2b385764b2b24ce46acedc752b/src/Data/Geometry/Geos/Geometry.hs#L100-L102
The wiki has suggestions for writing compatible code.