mirror of
https://github.com/sayo-hs/heftia.git
synced 2024-11-26 23:05:04 +03:00
Update README.md.
This commit is contained in:
parent
c2d12f72b8
commit
14bc571358
16
README.md
16
README.md
@ -21,20 +21,32 @@ types in several ways to enable tuning in pursuit of high performance.
|
||||
|
||||
Please note that this library is currently in the experimental stage. There may be significant changes and potential bugs.
|
||||
|
||||
## Getting Started
|
||||
To run the [Writer example](https://github.com/sayo-hs/heftia?tab=readme-ov-file#two-interpretations-of-the-censor-effect-for-writer):
|
||||
```console
|
||||
$ git clone https://github.com/sayo-hs/heftia
|
||||
$ cd heftia/heftia-effects
|
||||
$ cabal run exe:Writer
|
||||
...
|
||||
Pre-applying: Goodbye world!
|
||||
Post-applying: Hello world!!
|
||||
$
|
||||
```
|
||||
|
||||
## Example
|
||||
|
||||
Compared to existing Effect System libraries in Haskell that handle higher-order effects, this
|
||||
library's approach allows for a more effortless and flexible handling of higher-order effects. Here
|
||||
are some examples:
|
||||
|
||||
* Extracting Multi-shot Delimited Continuations
|
||||
### Extracting Multi-shot Delimited Continuations
|
||||
|
||||
In handling higher-order effects, it's easy to work with **multi-shot delimited continuations**.
|
||||
This enables an almost complete emulation of "Algebraic Effects and Handlers".
|
||||
For more details, please refer to
|
||||
the [example code](heftia-effects/Example/Continuation/Main.hs).
|
||||
|
||||
* Two interpretations of the `censor` effect for Writer
|
||||
### Two interpretations of the `censor` effect for Writer
|
||||
|
||||
Let's consider the following Writer effectful program:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user