4 ms·
>Sometimes it turns out you need to do something with IO somewhere, and now you have to change all the functions down the way to use it. Que no! Bloodhound, w
by coolsunglasses 12y ago
>Sometimes it turns out you need to do something with IO somewhere, and now you have to change all the functions down the way to use it.
Que no!
Bloodhound, which is expressly about talking to an outside database, has >500 type signatures. Fewer than 40 have IO in them. You most certainly do not need to add IO to pure code just because something in IO invokes it.
This is why we have things like Functor, monad transformers, etc.
Want to know more?
https://github.com/bitemyapp/learnhaskell https://github.com/bitemyapp/learnhaskell