Re:Effectful Haskell: IO, Monads, Functors
by tinco on Saturday August 29, 2015 @05:04PM
(#10141344)
The big not-so-secret secret is that you don't have to understand much of Monad theory to enjoy Haskell. If you want to use Haskell as a nice functional language with a great typesystem.
As spopejoy says, Monad is a typeclass, that means every Monad is a type on itself. So you you can get by just learning every monad for its use without ever needing to know the theory that binds them.
The Maybe Monad is just an option type, the list monad is just a list and the IO monad is just a sequence of operations that gets returned to the runtime from the main function. Who cares that they all share a typeclass?
Re:Effectful Haskell: IO, Monads, Functors
by lockfinn on Saturday August 29, 2015 @04:32PM
(#10141264)
I recommend this, https://github.com/bitemyapp/learnhaskell
Re:Effectful Haskell: IO, Monads, Functors
by dllthomas on Saturday August 29, 2015 @05:05PM
(#10141347)
I've heard good things about the opening sections of the WikiBook - and if it is hard to understand, ask questions and then improve it! :)
Re:Effectful Haskell: IO, Monads, Functors
by RehnoLindeque on Saturday August 29, 2015 @10:11PM
(#10142035)
Try elm (http://elm-lang.org/) first; it doesn't mention Functor, Applicative, Monoid, Monad anywhere.
You might come back to Haskell later and it won't seem like such a big deal. (I use Haskell for serious work and love that a quick patch doesn't suddenly start breaking things in 10 other places - it's a real time-saver!)
It makes me wonder who ends up using this language for anything serious in even the slightest time crunch...