Re:Programming with Effects
by mundacho on Sunday November 24, 2019 @06:31AM
(#21619750)
It's done a lot, it's used for mocking in FP.
For example, I hace a monad that saves to a database using effects. I change the effect to update an array instead and I have code that I can use in a unit test.
For example, I hace a monad that saves to a database using effects. I change the effect to update an array instead and I have code that I can use in a unit test.