Haskell: actual IO monad implementation, in different language?

后端 未结 7 961
梦如初夏
梦如初夏 2020-12-08 08:24

How is IO monad actually implemented?in sense of, what would be the actual implementation of the main function?

How would I call haskell function (IO) f

相关标签:
7条回答
  • 2020-12-08 09:10

    If you want to understand the implementation of the IO monad, it's very well described in an award-winning paper by Phil Wadler and Simon Peyton Jones, who were the ones who figured out how to use monads to do input/output in a pure language. The paper is Imperative Functional Programming and is on both authors' web sites.

    0 讨论(0)
提交回复
热议问题