Re:Functionally Solving Problems With Haskell
by abraxasz on Saturday April 05, 2014 @01:52PM
(#7537816)
I read the book a while back and it is absolutely fantastic. What I understand about monads, I learnt it from this book (no other exposition of monads ever made sense to me), and I particularly like his progression functors -> applicative functors -> monads. I think it's the clearest way to proceed (certainly helped me a lot anyways)
[ Parent
| on HN ]
Re:Functionally Solving Problems With Haskell
by coolsunglasses on Saturday April 05, 2014 @01:56PM
(#7537835)
When I teach Haskell, I like to take a diversion from Applicatives to Monoids before going to Monads.
Understanding join is pretty valuable for understanding Monads too.
You can do Applicative -> Alternative and study Alternatives as Monoids of Applicatives and then lay on the difference between (<*>) and (<>) as producing a seminearring!
And then go study Monads because why not. They're kind of cool, too.
Re:Functionally Solving Problems With Haskell
by coolsunglasses on Saturday April 05, 2014 @05:03PM
(#7538443)
Actually you just reminded me that I need to explain sums and products in terms of a seminearring.