Open Gurkenglas opened 8 years ago
Could you elaborate on how they are useful here? (I looked thru the #haskell archives, but having a coherent example here would be better.)
I use them pretty often, lots for example on http://lpaste.net/148381 (You might find some more on https://www.google.de/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=site:lpaste.net+modifyT ).
Have you ever used StateT as a function? The use cases are similar, and the rectangle runState-state-runStateT-StateT is equivalent to the above.
These rectangles deserve to be completed:
The implementations would be something like: