3 ms·
How do you perform side effects in Unison (like reading a file as an example)?
by Touche 5y ago
How do you perform side effects in Unison (like reading a file as an example)?
- rlmark 5y agoHi there, the other article author chiming in here! You can perform side effects in Unison via abilities (our name for algebraic effects) - they're described here: https://www.unisonweb.org/docs/abilities/ https://www.unisonweb.org/docs/abilities/ Some basic IO functionality is supported by the `base` library (the standard lib) which contains functions like `openFile` which are effectful functions expressed in terms of the `IO` ability.