News for hackers. Stuff that matters.
Re:An opinionated guide to Haskell by dvddgld on Saturday February 10, 2018 @01:26PM (#16348682)
Learning Haskell is one of those two weeks things that’s been on my interests list for a long time, but will likely stay there for awhile yet.

Though, if anyone has got any high-quality quick resources handy that’d be appreciated!

Re:An opinionated guide to Haskell by cauterize on Saturday February 10, 2018 @01:27PM (#16348688)
http://haskellbook.com/ is a great modern deep dive catered to folks like you! It is long, but guides you along the way
Re:An opinionated guide to Haskell by pimeys on Sunday February 11, 2018 @01:26PM (#16353938)
Need to reply after one day, but I read the sample, figured out an environment for Haskell using Spacemacs and bought the whole book. Because of your link, I decided to be proficient with Haskell in 2018. 2016 was the year of Clojure, 2017 Rust and now Haskell.

Thank you in advance!

Re:An opinionated guide to Haskell by sridca on Sunday February 11, 2018 @10:53PM (#16356399)
Here's another targeted towards those who already know some Haskell: https://intermediatehaskell.com/
Re:An opinionated guide to Haskell by dvddgld on Saturday February 10, 2018 @01:30PM (#16348702)
Thank you!
Re:An opinionated guide to Haskell by farresito on Saturday February 10, 2018 @02:39PM (#16349113)
Haskell is so far the language that has blown my mind the most, and it's not even close. Admittedly, I haven't learned that many (esoteric) languages (I found Prolog very peculiar, for example), but if you have never done any functional programming before, Haskell will (hopefully) blow your mind as well.
Re:An opinionated guide to Haskell by drizze on Saturday February 10, 2018 @01:40PM (#16348759)
I’ve been reading “Real World Haskell” and enjoying it thus far. Big bonus is it is available for free online:

http://book.realworldhaskell.org

Re:An opinionated guide to Haskell by happimess on Monday February 12, 2018 @09:35AM (#16358779)
This is a great book. I brought it on vacation once, read it end to end, and was a much better Haskeller afterwards.

However, it was written a long time ago, and is missing a lot of Haskell's recent history. The book targets GHC 6.8, whereas I'm running 8.2.2. There's a summary at [1]

Again, it's a great book and the price is right, but caveat lector.

[1] http://support.oreilly.com/oreilly/topics/when-will-it-be-an...

Re:An opinionated guide to Haskell by pdpi on Saturday February 10, 2018 @01:42PM (#16348770)
If you’re in it for the two-week thing rather than the long term, “learn you a Haskell for great good” is a good choice. Not terribly informative if your goal is writing large applications, but pretty good introduction to the mindset that goes with writing haskell
Re:An opinionated guide to Haskell by chillee on Saturday February 10, 2018 @02:09PM (#16348920)
To elaborate on LYAH, I think it's a pretty bad resource for actually learning Haskell. It's very "here's a feature, now copy it". Which works fine for learning syntax, but works poorly for learning Haskell.

Check here for a review that really resonated with my experiences about LYAH:

http://bitemyapp.com/posts/2014-12-31-functional-education.h...

Note the author of that post is also the author behind the Haskell book, which is also what I'd recommend currently.

Re:An opinionated guide to Haskell by atombender on Saturday February 10, 2018 @06:56PM (#16350339)
I have to disagree about LYAH here.

Allen can argue that LYAH is incomplete, and he seems to think the university courses he mentions are the best way to learn Haskell. But not all developers want to go down that route, at least not as a first step. For me, LYAH was an important stepping stone to getting productive, while at the same time fully understanding that it was not the final word on anything.

This is, I suspect, what Allen doesn't get. His Haskell book is actually yet another example of why many developers find Haskell daunting to learn; it starts at the deep end, like many books before it. LYAH succeeds precisely because it doesn't go into several pages about beta reduce before explaining how variables are declared. Sure, it's chatty, it likes to rely on the REPL to show evaluations, and it also doesn't start with a formal introduction to functional languages or lambda theory. But it's a book written for programmers who already know how to code. It's approachable, doesn't go into unnecessary detail (if you want to know everything about List, go somewhere else; the Haskell Book has 59 pages devoted to it!), and lets you get up to speed fast without falling off along the way. It's an introductory mini course, and by the end of it you'll be able to write programs.

I don't buy Allen's arguments about it being "unpedagogical". I've never used book exercises and I never will, yet I didn't have any issues learning Haskell, or any other programming book for that matter. The absence of exercises in LYAH doesn't make it a bad book.

As an aside, Allen co-wrote what he claims is a superior book, and then published it as... a PDF. I just purchased it, and was immediately disappointed I had paid $59 for what amounts to a paper book in digital form, with no web version (the "online" version on gumread.com doesn't even provide hyperlinks within the book). LYAH is great because it's adapted to the web. I'm sure the Haskell Book is wonderful (and I'm reading it), but this is another way he misses the point of LYAH.

Re:An opinionated guide to Haskell by chillee on Saturday February 10, 2018 @07:42PM (#16350484)
Out of curiosity, did you finish LYAH? And have you actually started using Haskell for any substantial projects?

I was also recommended LYAH when I started, and it was only around the middle of the book when I started to get lost. I remember actually going along a GH repo somebody had made for "haskell exercises companion to LYAH", but I still found myself reading a chapter, and then having no idea how to actually use the concepts learned. Especially the concepts that are really "barriers" to understanding Haskell (monads, applicative, etc.)

The problem with LYAH is that it teaches you "what" haskell is, but not "why" haskell is the way it is, nor "how" you should you think about Haskell. If you're not at least familiar with another FP language in the same space (probably a ML language), Haskell is not a language you "get up to speed" in.

Re:An opinionated guide to Haskell by atombender on Saturday February 10, 2018 @08:43PM (#16350692)
I did finish it, and I thought the introduction to monads more helpful than anything else I'd come across, as it's focused on the practical use of them.

LYAH is not for everyone, but that also means it's not bad for everyone, either. There's more than one way to teach computer languages.

Re:An opinionated guide to Haskell by gilmi on Sunday February 11, 2018 @01:42PM (#16354040)
Almost all of the people that I've met that read LYAH (including myself) could hardly even write trivial projects in haskell upon finishing it. this is in my book (heh) a failure and why i recommend people to avoid LYAH. If you finish HPFFP you have everything you need to be productive and contribute to a production code base.

If you learned Haskell using LYAH and you could write non-trivial software in Haskell right after finishing it - I'm very happy for you. But know that you are in the minority from what i got to witness.

Re:An opinionated guide to Haskell by chillee on Sunday February 11, 2018 @01:47PM (#16354067)
Yeah that's what my experiences have been too. It's one thing to feel like you understand Haskell after finishing LYAH; it's another to actually understand it.
Re:An opinionated guide to Haskell by anjellow on Sunday February 11, 2018 @05:28AM (#16352091)
I'd have to agree with you. Having read the entirety of LYAH as an introduction to Haskell and functional programming, I felt introduced to a-lot of functional concepts and Haskell syntax. That's unfortunately it. With the absence of practice problems, nothing really stuck, and I'm nowhere near prepared to create a project myself.

Overall, it's not a waste of time, but I'm sure there are more stimulating Haskell books out there that'll better lead you to think in a functional way.

Re:An opinionated guide to Haskell by AlexCoventry on Saturday February 10, 2018 @07:16PM (#16350406)
I'm reading LYAH at the moment, and I think it's great if you're familiar with functional programming already, and just want an introduction to haskell. It's incredibly verbose, but I just read the code, and resort to the text when I don't understand what's going on. Haskell Programming From First Principles takes a socratic approach which seems like it could be good for very dedicated students who need to learn the fundamentals of functional programming in addition to haskell.