How are state monads / monad transformers desugared inside do notation?

后端 未结 0 1930
长情又很酷
长情又很酷 2021-01-03 01:00

Example

sumArray :: Array Int -> State Int Unit
sumArray = traverse_ \\n -> modify \\sum -> sum + n

t1 :: I         


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