Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Quite the opposite, that's exactly what continuation monads do, for example `ContT`, and more structured versions such as `freer`. Those essentially simulate a stack rather than using the actual RTS stack. For the latter there are `eff` and `bluefin-algae` (the latter very much work in progress). So yes, in Haskell at least, monads are the right API for deli meted continuations.

https://www.stackage.org/haddock/lts-23.15/transformers-0.6....

https://hackage.haskell.org/package/freer-0.2.4.1

https://github.com/lexi-lambda/eff

https://hackage.haskell.org/package/bluefin-algae



Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: