[Haskell-beginners] Question about example in 'using do notation with Writer' section of LYH
imantc at gmail.com
Thu Jan 26 16:10:55 UTC 2017
> what becomes of the string parts of the Writer monads
multWithLog keeps [String] and outputs Int
to fully benefit from Writer [String] Int, you'd call e.g. runWriter
similar to other *State state out* monads,
*m state out* lets you get/set/keep state as needed without passing it as
an arg. *state* is there if you need it.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners