3 ms·
I’m not sure that discussion of monads is super helpful. It’s not neccessarily wrong, but it doesn’t get to the meat of the matter. Monads doesn’t represent un
by cannabis_sam 8y ago
I’m not sure that discussion of monads is super helpful. It’s not neccessarily wrong, but it doesn’t get to the meat of the matter.
Monads doesn’t represent uncomputable values like sqrt(-1), it’s more like they represent a context, where computations take place.
So you can separate all computations involving IO into the parameterized function type ’Monad a’, where a is your result type
- cannabis_sam 8y ago(In the IO case that would be ’IO a’)