direction of pipelines (Was: Proposal: die to System.Exit (and/or Prelude))

Henning Thielemann lemming at henning-thielemann.de
Mon Dec 16 14:09:08 UTC 2013


On Mon, 16 Dec 2013, Andreas Abel wrote:

> On 14.12.2013 12:54, Simon Hengel wrote:
>>      main :: IO ()
>>      main = getContents >>= either die run . parseInput
>
> Funny way to write a pipeline.  Its neither left-to-right, which would be
>
>  getContents >>= (parseInput >>> either die run)
>
> nor right-to-left:
>
>  either die run . parseInput =<< getContents
>
> A case for hlint.


http://www.haskell.org/haskellwiki/Direction_of_data_flow


More information about the Libraries mailing list