尝试使用 Chart 学习 Haskell。构建中的包装中断:
/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
我太缺乏经验,不知道如何处理这样的问题。请指教。