I've seen in some docs and tutorials:
What is the abstract concept that this pattern covers? What does running something mean in Haskell?
Side question, is there a tag for things you always wanted to know but were too afraid to ask?
In Haskell, the convention runSomething
means 'execute the effects described inside the given argument, and return the resulting value'.
I purposely said 'effects' because I was being fuzzy; in Haskell you use the type system to describe different effects that might happen, like doing I/O, or modifying state, etc. So depending on the exact type, different effects might be run before the final value is returned.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With