This was a good one. That chapter on monads is pretty long, but it is as good as an explanation as there ever could be. They never mention the idea of “programmable semicolons,” but the section on “do” notation is just as good.
Do you try out the examples in GHCI? The error messages that come up when you make a mistake are pretty esoteric; that always bothered me, but you get used to it.
Just curious, are you using VSCode, or some such IDE, to write your examples and control the GHCI session, or are you just using it directly from the terminal?
I recently (within the past year) switched to Emacs after over a decade of using Vim, because Emacs Lisp. Emacs has some pretty good support for Haskell, and interactive GHCI sessions, so I’ve enjoyed the transition.
This was a good one. That chapter on monads is pretty long, but it is as good as an explanation as there ever could be. They never mention the idea of “programmable semicolons,” but the section on “do” notation is just as good.
http://learnyouahaskell.com/a-fistful-of-monads#do-notation
Do you try out the examples in GHCI? The error messages that come up when you make a mistake are pretty esoteric; that always bothered me, but you get used to it.
LikeLike
Yeah I’m trying everything out with ghci. My mistake last time was to try to read it without actually coding. That worked but only up to a point.
I have learned a lot more about functional programming in the meantime.
LikeLike
Just curious, are you using VSCode, or some such IDE, to write your examples and control the GHCI session, or are you just using it directly from the terminal?
I recently (within the past year) switched to Emacs after over a decade of using Vim, because Emacs Lisp. Emacs has some pretty good support for Haskell, and interactive GHCI sessions, so I’ve enjoyed the transition.
LikeLike
I’m using vscode for syntax highlighting and linting. I’m running GHCi in the integrated terminal window (it’s just git bash).
I’m using Haskell Stack which seems to integrate a few things, cabal-install etc. It feels like npm plus a few project generators.
https://docs.haskellstack.org/
LikeLike
Haskell is my secret crush of programming languages, but I don’t think I’m every going to have anyone willing to pay me to get serious with it.
LikeLike