Experience reports using indexed monads in production?

前端 未结 3 1401
感情败类
感情败类 2021-02-08 17:18

In a previous question I discovered the existence of Conor McBride\'s Kleisli arrows of Outrageous Fortune while looking for ways of encoding Idris examples in Haskell. My effor

3条回答
  •  庸人自扰
    2021-02-08 17:47

    Another nice example is mutexes with lock-unlock check at compile time. You can find this example on Stephen Diehl website:

    http://dev.stephendiehl.com/hask/#indexed-monads

提交回复
热议问题