haskell-effectful/effectful

Lens and/or optics usage with state

steffenomak opened this issue · 3 comments

Hi, I'm playing around with this library and find it quite well documented and ease to use.

I'm building a statistics tool at work, where I'm using the state effect in some places and using the Xlsx package to generate reports.

I like the .= and other operators that work on inside the state monad. So my question is, how would one go about integrating the two? Should I re implement the operators I want? Or is there a more elegant solution?

You could probably just implement a MonadState instance for Eff.

Hey. There's also haskell-effectful/effectful-contrib#24 - I'll put it in a package soon, for now you can copy bits and pieces you need and use them locally 🙂

Nice thanks, so my thought about re implemetning them was the "correct" thought.

Thanks for the help.