-
With coroutines we can implement a Haskell-ish do-notation. Call them "doroutines":
```
from pymonad.operators.maybe import Maybe, Just, Nothing
from pymonad.tools import curry
@curry(2)
def …
ckp95 updated
1 month ago
-
## System details:
#### Positron and OS details:
Positron Version: 2024.09.0 (Universal) build 27
Code - OSS Version: 1.92.0
Commit: d996153f3be6bcc9af460300e61103425323b973
Date: 2024-09-1…
-
When compiling `tests/Compilation/positive/test080.juvix` I get:
```
juvix: Prelude.!!: negative index
CallStack (from HasCallStack):
error, called at libraries/base/GHC/List.hs:1675:12 in base:…
-
### Description
If you try to use `open` or `export` to import names to use for dot notation, it does not work. Confusingly, you can have `String.a "x"` succeed but `"x".a` fail.
### Context
…
-
### Prerequisites
* [x] Put an X between the brackets on this line if you have done all of the following:
* Check that your issue is not already [filed](https://github.com/leanprover/lean4/iss…
-
`big stuff ≡{n}≡ big stuff` looks bad (when proving Contractive stuff)
```
big stuff ≡{n}≡ big
stuff
```
while `big stuff = big stuff` is fine.
```
big stuff =
big stuff
```…
-
I have this in my _CoqProject file:
```
#-arg -w -arg -notation-incompatible-prefix
```
I have this because I want to temporarily disable this flag to see where exactly the warning gets triggered.…
-
> Since cs:open? executes when the line (let is-open-b = (cs:open? stream)) executes, is-open-b is calculated before the stream is closed, even though it looks like the stream was al…
-
Based on the Monad implementation, we should be able to explain Haskell's `do notation`, potentially creating an emulation of it as well.
Take a look at an existing `do` notation crate https://gith…
-
Added here - https://github.com/beezee/kleisli-run
LMK if you would be interested in a PR as usual.