3 ms·
Haskell has <$> and the infrastructure of HKTs to stop this infectious propagation of IO, other languages do not, and their async/await colors do not isolate si
by instig007 2y ago
Haskell has <$> and the infrastructure of HKTs to stop this infectious propagation of IO, other languages do not, and their async/await colors do not isolate side-effectful actions from the rest pure parts of your codebase.
https://hackage.haskell.org/package/base-4.20.0.1/docs/Prelude.html#v:-60--36--62- https://hackage.haskell.org/package/base-4.20.0.1/docs/Prelu...
- fer 2y ago> other languages do not Which ones? I think there's always some way to isolate, even if ugly.
- instig007 2y ago> Which ones? I think there's always some way to isolate, even if ugly. Almost all of them? You need referential transparency (via laziness) too, otherwise your attempt at isolation will break at the first binding expression in a local scope for future processing elsewhere: ... let arg = processData <$> ioAction in ... Do you want to wrap-and-call-later all of these cases into lambdas by hand? :)