r/hascalator • u/jdegoes ZIO • May 03 '20
Effect Tracking Is Commercially Worthless
https://degoes.net/articles/no-effect-tracking
11
Upvotes
r/hascalator • u/jdegoes ZIO • May 03 '20
3
u/stremlenye May 04 '20
I don’t really get what this article is about apart of being a native ad for ZIO. Yes, event tracking is not everything what IO/ZIO has to offer and pretty much that’s what their documentation state as well as the discussion around follows. Is it about how to sell the IO to my boss? Probably worth it this way.
1
u/Jinxuan May 04 '20
For logging, which is "not effectful" in common sense, you can use algebra to avoid declare it effectful. And you shall do it in this way or final tagless way for test.
Give fused-effect as an example:
Then we naturally have
Log m -> LogIOC mandLog m -> LogMockC m. We do not need to assume the effect in log functions before actually implement it.