News for hackers. Stuff that matters.
Re:Haskell is not category theory by almostdeadguy on Friday February 03, 2023 @12:04PM (#34644027)
> If you are looking to learn the language, I recommend Learn You A Haskell.

I definitely don't recommend this. While cute, Learn You A Haskell is lacking a lot of pragmatic advice about how to write software in haskell. It's good for getting you up to the FAM trio of type classes but leaves out a lot of practical advice around things like navigating base (what to use and ditch from it), the available community libraries, topics like monad transformers, and pragmatic advice around things like error handling, testing, and isolating effects from tests that come up very quickly in real world Haskell development.

Haskell Programming From First Principles is a much better book IMO: https://haskellbook.com/

I haven't written Haskell in a while, but there may be even better books today as well.

Re:Haskell is not category theory by eru on Friday February 03, 2023 @12:18PM (#34644285)
I mostly agree with your recommendation against Learn You A Haskell.

However I would suggest people have a look at https://en.wikibooks.org/wiki/Haskell

'Haskell Programming From First Principles' is a bit too fan-boyish.

Re:Haskell is not category theory by lopatin on Friday February 03, 2023 @12:22PM (#34644355)
I thought fanboyism was one of the first principles.
Re:Haskell is not category theory by eru on Friday February 03, 2023 @12:41PM (#34644759)
Well, you'd want enlightened fanboyism.
Re:Haskell is not category theory by marcosdumay on Friday February 03, 2023 @02:47PM (#34646803)
The only language I've seen where developers are less fanboys of it than Haskell is C++.

Try asking one what is wrong with the language.

Re:Haskell is not category theory by IshKebab on Friday February 03, 2023 @06:15PM (#34649193)
Haskell feels like a language that's full of great ideas but overall nobody really likes it. Maybe it just needs to simmer for 30 years until someone comes up with whatever Haskell's equivalent of C++'s Rust is.
Re:Haskell is not category theory by max0563 on Friday February 03, 2023 @12:47PM (#34644880)
I have tried several times to learn Haskell. The only resource that actually worked for me was Philipp Hagenlocher's "Haskell for Imperative Programmers".

It is incredible. He does an amazing job of starting from the basics and then diving deep. After going through the series I had a solid enough grasp on the language to use it for practical things.

https://www.youtube.com/watch?v=Vgu82wiiZ90&list=PLe7Ei6viL6...

Re:Haskell is not category theory by XorNot on Friday February 03, 2023 @08:55PM (#34650540)
Going to give this a try later. I've had the same experience, and every time hit a point of going "I'm X levels deep in syntax I don't understand and can't see a benefit in sight..."
Re:Haskell is not category theory by luuuzeta on Saturday February 04, 2023 @07:28AM (#34653959)
I'm currently reading Graham Hutton's "Programming in Haskell" (2nd), which is also another great resource. He also has YouTube videos [1] for chapters in the book. Philipp's videos are great too, which I also watch after finishing a book chapter.

[1]: https://www.youtube.com/channel/UCBDp7ydYTHi1dh4Gnf3VTPA

Re:Haskell is not category theory by pema99 on Friday February 03, 2023 @02:34PM (#34646648)
Feels worth mentioning that Learn You A Haskell is about 1/3 the length of the book you mentioned.

I agree that it won't teach you all you need to know to be really proficient with the language, and also wish it didn't omit monad transformers in particular. I still like that it's an easy read, and that I could hand it to someone with pretty much zero knowledge of FP. I used sections of it as a first resource, and then learned the rest by reading documentation, which is how I usually deal with new languages.

I haven't read the book you suggested, so can't comment on the content, but seeing that the first chapter is on lambda calculus makes me a bit skeptical. Perhaps you can tell me, is the book similarly beginner friendly?

Re:Haskell is not category theory by whateveracct on Friday February 03, 2023 @03:27PM (#34647252)
You can read LYAH and go build a project. You may have to also read Haddocks but LYAH equips you to understand them and okay type tetris.

You can definitely read LYAH and read the scotty and postgresql-simple docs and be on your way. You may also want to reference the GHC manual.

Re:Haskell is not category theory by runevault on Friday February 03, 2023 @04:08PM (#34647733)
This conversation reminds me I need to get back to No starch's book about learning Physics with Haskell. Grabbed it cheap but haven't gotten back to it.
Re:Haskell is not category theory by epolanski on Friday February 03, 2023 @05:26PM (#34648664)
> While cute, Learn You A Haskell is lacking a lot of pragmatic advice about how to write software in haskell.

No book can give pragmatic advice on that topic, it's an ecosystem that evolves poorly and (lately) quite fast.

You recommend HPFFP but it's also a dated resource for anything but learning nowadays.

Re:Haskell is not category theory by Buttons840 on Friday February 03, 2023 @07:11PM (#34649710)
https://leanpub.com/production-haskell was released recently. I haven't read it yet, and I'm not affiliated, but it looks interesting.
Re:Haskell is not category theory by lambdaxymox on Saturday February 04, 2023 @11:15AM (#34655513)
I learned Haskell around 2010 starting with LYAH followed by Real World Haskell. I too wouldn't recommend LYAH for actually learning Haskell in $CURRENT_YEAR now that there are manifold and much better resources on the topic now, such as Haskell From First Principles. LYAH was quite hilarious and entertaining, but I think its time has passed. I don't use Haskell a whole lot these days, but to this day Haskell is still one of my Blub languages.