4 ms·
One way around this is to have typeclasses for all the different kinds of effects you'd like with instances for IO. Then for testing you can use a different ins
by DanWaterworth 10y ago
One way around this is to have typeclasses for all the different kinds of effects you'd like with instances for IO. Then for testing you can use a different instance that produces a value of a free monad.