|
|
|
|
|
by dan-robertson
1707 days ago
|
|
I think I don’t understand your types. The Effect type you define appears to be, essentially, a function that takes infinitely many arguments of type a. Let’s imagine two simple effects. One prints a string (I’ll call this ‘printer’) and one reads an int entered by the user (let’s call it ‘reader’) In this case, how would those effects be modelled with the types you wrote? |
|