haskell, is IO Monoid associativity broken?

前端 未结 0 451
遇见更好的自我
遇见更好的自我 2020-11-22 04:59

In haskell IO type has instance of Monoid:

instance Monoid a => Monoid (IO a) where
    mempty = pure empty

if I have three actions which

相关标签:
回答
  • 消灭零回复
提交回复
热议问题