-
Oleg, in `Freer Monads, More Extensible Effects`, describes the implementation of Fluet and Morrisett’s “monadic regions”, which are like a nested `ST` monad.
-
I am not too familiar with SDL and after an install the main program crashes. If would be nicer to be able to consume only the core piece for creating other client packages.
-
e.g. this experiment with monadic error handling:
https://gist.github.com/lionel-/a9aee3edb45a60a6e393
-
Test the bind operator of a few monads:
- [ ] option
- [ ] lwt (we don't want it to be completely reduced, Lwt.return makes a mutable block)
- [ ] async (I don't know what can be reduced)
(More expec…
-
Sometimes there is just no avoid effects. The `foldl` packages' `FoldM` type captures this variety of fold nicely.
-
This issue is about any expression that can yield an early return: `?`, `return`, `continue`, `break`.
The engine has a module `side_effect_utils.ml` that deals with any expression with side effect…
-
It takes ~0.5-1s to parse a paragraph of text, which is too slow for web use. It may be bad grammar design, or the combinators may be relying on laziness too much still (although I've worked on the la…
-
Would it be possible to reconcile the following two forms so that in both cases the matches start under the let ?
``` ocaml
> cat indent.ml # desired
let f x = g x >>= function
| None -> ()
| Some …
-
From [this issue on ghc](https://gitlab.haskell.org/ghc/ghc/-/issues/21771):
The StackOverflow question "[Is there any way to inline a recursive function](https://stackoverflow.com/questions/421797…
-
# How to Use Monadic Operations for `std::optional` in C++23 - C++ Stories
In this post we’ll have a look at new operations added to std::optional in C++23. These operations, inspired by functional p…