News for hackers. Stuff that matters.
Re:How to make any immutable data structure distributed by Touche on Sunday December 05, 2021 @06:18PM (#29454340)
How do you perform side effects in Unison (like reading a file as an example)?
Re:How to make any immutable data structure distributed by rlmark on Sunday December 05, 2021 @07:10PM (#29454674)
Hi 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/

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.