Re:Maybe Everything Is a Coroutine
by quickthrower2 on Wednesday February 14, 2024 @07:01AM
(#39368881)
I was playing with Haskell years ago and remembered a cheap trick. Just make a typeclass with all the IO ops you want and also make it a monad. You now have your own custom IO monad with only the bits you want to “give access to”. It is easier to understand than free
monads (which I never truly grokked but could happily copy/paste adapt and get em to work, sans understanding!)
[ Parent
| on HN ]
There are no comments on this comment yet.