A brief exploration of the various approaches to modeling side effects in a purely functional programming language.
Haskell
97
87 commits
updated Jan 17, 2022
A brief exploration of the various approaches to modeling side effects in a purely functional programming language.
Write a program that initializes an accumulator and random seed both with 0 and then runs the following procedure 10 times:
[0, 10).Thus, 3 computational effects are exhibited: logging, randomness, and mutable state.
This repository contains 4 implementations of the program described above, each demonstrating a specific technique:
Eff monad from the "extensible effects" frameworkMake sure you have Toast installed. Then you can run toast run to build and run the demo.
Haskell
87.6%
Ruby
12.4%
A brief exploration of the various approaches to modeling side effects in a purely functional programming language.
Haskell
97
87 commits
updated Jan 17, 2022
A brief exploration of the various approaches to modeling side effects in a purely functional programming language.
Write a program that initializes an accumulator and random seed both with 0 and then runs the following procedure 10 times:
[0, 10).Thus, 3 computational effects are exhibited: logging, randomness, and mutable state.
This repository contains 4 implementations of the program described above, each demonstrating a specific technique:
Eff monad from the "extensible effects" frameworkMake sure you have Toast installed. Then you can run toast run to build and run the demo.
Haskell
87.6%
Ruby
12.4%