vellvm / ctrees

An itree-like data-structure to additionally support internal non-determinism
MIT License
13 stars 2 forks source link

Add state #7

Closed elefthei closed 2 years ago

elefthei commented 2 years ago

I needed a state transformer and I copied the one from ITrees with some minimum changes, instance of MonadChoice is from @Grain 's example/Yield/Lang.v.

YaZko commented 2 years ago

Looks good, we can definitely merge this in for now.

On the medium run, I'd like us to think of: