-
![image](https://github.com/codereport/jello/assets/36027403/f083a58c-19e0-4275-80ed-c4082dafe3b8)
-
In `jsrc/verbs/monadic/tally.cpp`:
```cpp
// TODO: refactor me
[[nodiscard]] auto
refactorme_zeroionei(int64_t n) {
return reinterpret_cast(Bnum + (n));
}
```
-
We should provide monadic interfaces to our data structures so LWT can interface with them better
-
Some monadic types change the return type of `map` and `flatMap`, and these should be supported too.
-
Optional part 3 for abilities tutorial. Abilities for Monads users. Builds on the motivation for abilities in part 1 but with an eye towards users who are experienced with monadic effect management.
…
-
The dead-code eliminator is pretty aggressive about deleting naively written checks in monadic code. For example, I expect
```ur
val main : transaction page =
(if 1 > 0 then error x is too la…
-
Code
``` scala
monadic[Option] { val i = Some(1).each < 0; i && {println("foo"); Some(2).each > 0} }
```
Output
```
foo
res5: Option[Boolean] = Some(false)
```
jilen updated
7 years ago
-
Currently [question marks](https://doc.rust-lang.org/rust-by-example/std/result/question_mark.html) (but also `return` and friends) are transformed in a monadic style.
In this style, computations a…
-
https://artyom.me/aeson - older and bigger
https://williamyaoh.com/posts/2019-10-19-a-cheatsheet-to-json-handling.html - newer, more compact, has a link to monadic tutorial
-
Transformers is used in a single place in the code. The StateT/MaybeT monadic binds could just be inlined. The result would be cleaner and may possibly perform better.