[ 6 of 29] Compiling Graphics.Rasterific.Transformations ( src/Graphics/Rasterific/Transformations.hs, dist/build/Graphics/Rasterific/Transformations.o )
src/Graphics/Rasterific/Transformations.hs:56:10: error:
• No instance for (Semigroup Transformation)
arising from the superclasses of an instance declaration
• In the instance declaration for ‘Monoid Transformation’
|
56 | instance Monoid Transformation where
| ^^^^^^^^^^^^^^^^^^^^^
src/Graphics/Rasterific/Transformations.hs:103:5: error:
• No instance for (Semigroup Transformation)
arising from a use of ‘<>’
• In the expression:
translate p <> rotate angle <> translate (negate p)
In an equation for ‘rotateCenter’:
rotateCenter angle p
= translate p <> rotate angle <> translate (negate p)
|
103 | translate p <> rotate angle <> translate (negate p)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Add semigroup instances. See also: https://ghc.haskell.org/trac/ghc/wiki/Migration/8.4#SemigroupMonoidsuperclasses