Haskell: monadic takeWhile?

前端 未结 5 948
一整个雨季
一整个雨季 2020-12-30 07:33

I have some functions written in C that I call from Haskell. These functions return IO (CInt). Sometimes I want to run all of the functions regardless of what

5条回答
  •  南方客
    南方客 (楼主)
    2020-12-30 08:14

    More recently, you can use the MonadList hackage that includes handy functions like takeWhileM, dropWhileM, deleteByM and many more.

提交回复
热议问题