Trying using Chart for learning Haskell. Package breaks in building with:
/private/var/folders/m2/qwhdrn_d46z99_3vxchdwn7r0000gn/T/stack5630/Chart-1.9/Graphics/Rendering/Chart/State.hs:102:3: error:
• No instance for (Control.Monad.Fail.MonadFail Identity)
arising from a do statement
with the failable pattern ‘(c : cs)’
• In a stmt of a 'do' block: (c : cs) <- use shapes
In the second argument of ‘($)’, namely
‘do (c : cs) <- use shapes
shapes .= cs
return c’
In the expression:
liftCState
$ do (c : cs) <- use shapes
shapes .= cs
return c
|
102 | (c:cs) <- use shapes
I am too inexperienced to know how to go about issues like this. Please advise.