4 ms·
To everyone new to haskell and confused: Don't judge haskell based on these definitions. They appear strange and crazy, but when you actually do stuff most of t
by LeanderK 10y ago
To everyone new to haskell and confused: Don't judge haskell based on these definitions. They appear strange and crazy, but when you actually do stuff most of them turn out to be quite intuitive.
My advice is to ignore these things. Don't read a million monad tutorials. Just play around and code something, you don't have to understand the monad-definition before you can use the do-notation. Try to ignore them. After a while you get an intuition and then the definitions will make sense.
- deleted 10y ago[deleted]
- freddref 10y agoIt's only intuitive after you understand it ;)
- AsyncAwait 10y agoI've found parser combinators to be a fun and useful way to play around with monads, since it's pretty easy to implement your own monads this way, and what better way to understand something, than to actually make it?
- LeanderK 10y agoi agree! They are also surprisingly useful and not incomprehensible like Regex.