If you like JQuery like programming Ed Kmett wrote a library called Lenses (which aren't monads either): https://wiki.haskell.org/LensBeginnersCheatsheet
Ed also helped dispel jQuery as a monad a few year ago: http://www.reddit.com/r/haskell/comments/ive1n/you_got_your_type_class_in_my_jquery_applicative/c26y5oj http://blog.jorgenschaefer.de/2013/01/monads-for-normal-programmers.html
While jQuery behaves a little like a monad it isn't one.
ReplyDeleteMainly because you the your values can be accessed outside the monad and that it doesn't work on arbitrary types.
A good summary and other examples of why it isn't a monad: http://www.quora.com/Is-jQuery-a-monad
If you like JQuery like programming Ed Kmett wrote a library called Lenses (which aren't monads either):
ReplyDeletehttps://wiki.haskell.org/LensBeginnersCheatsheet
Ed also helped dispel jQuery as a monad a few year ago:
http://www.reddit.com/r/haskell/comments/ive1n/you_got_your_type_class_in_my_jquery_applicative/c26y5oj
http://blog.jorgenschaefer.de/2013/01/monads-for-normal-programmers.html
Re: this conversation, this was a good post:
ReplyDeletehttp://walpurgisriot.github.io/blog/2013/12/03/the-monad-was-inside-you-all-along.html
Hi nice readingg your blog
ReplyDelete