mirror of
https://github.com/polysemy-research/polysemy.git
synced 2024-12-02 02:43:39 +03:00
2654d35066
This PR provides a single function withLowerToIO, which runs a desired Sem r effect all the way down to IO, without needing to know the natural transformation beforehand. It does it by running the desired code in a new thread, and shipping all of the unhandled effects back to the main thread. The main thread turns into an event loop for the duration of the withLowerToIO block.
18 lines
261 B
YAML
18 lines
261 B
YAML
resolver: lts-13.0
|
|
|
|
packages:
|
|
- .
|
|
- polysemy-plugin
|
|
|
|
extra-deps:
|
|
- aeson-1.4.3.0
|
|
- bifunctors-5.5.4
|
|
- dump-core-0.1.3.2
|
|
- first-class-families-0.5.0.0
|
|
- ghc-lib-0.20190204
|
|
- inspection-testing-0.4.2
|
|
- monadLib-3.9
|
|
- th-abstraction-0.3.1.0
|
|
- unagi-chan-0.4.1.0
|
|
|