News for hackers. Stuff that matters.
Re:Haskell Problems for a New Decade by labawi on Saturday January 25, 2020 @11:26AM (#22146932)
Is it just me, or is the linked example messed up in all sorts of ways, even ignoring the use of monads and transformers? Looks like a novice trying to code in fancy ways.

For instance, it defines a Beer datatype, yet stores a plain Int in the state, then casts it to Beer only to use a custom pretty printer, instead of creating a verse :: Int -> String, or verse :: Beer -> String function.

Re:Haskell Problems for a New Decade by smitty1e on Saturday January 25, 2020 @12:17PM (#22147272)
I'm not a Haskell expert, and the example may be dated.