News for hackers. Stuff that matters.
Re:The Four Flaws of Haskell by chriswarbo on Monday August 15, 2016 @09:00AM (#12290100)
To be fair, "<$>" is a synonym for "fmap", so "fmap capitalise readStrLn" is the go-to alternative.

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 :)

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...