Re:The Four Flaws of Haskell
by Iceland_jack on Thursday August 18, 2016 @06:07AM
(#12311376)
`ApplicativeDo`[1] do-notation works with Functors
[1] https://downloads.haskell.org/~ghc/master/users-guide/glasgo...
The "do" example is not only more verbose, but less general (it only applies to monads rather than all functors), and relies on special syntax (despite its awkwardness, "<$>" is still just a function call).
You could also do "capitalise `fmap` readStrLn", which is kind of intermediate between the two :)