r/purescript • • Feb 12 '18

Extensible Coeffects

http://blog.functorial.com/posts/2018-02-11-Extensible-Coeffects.html
12 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/paf31 Feb 15 '18

The main benefit is that Day is symmetric, so all coeffects commute. You wouldn't be able to write something the the smash function when working with extensible effects, for example.

1

u/xalyama Feb 15 '18

So with effects the order of effect interpretation is important (for example the order in which we combine state and exceptions is important). But, with coeffects the order of coeffect interpretation does not matter?

1

u/paf31 Feb 15 '18

Correct, at least for this sort of coeffect, combined with Day convolution.