Personal tools

Direction of data flow

From HaskellWiki

Revision as of 15:13, 19 March 2007 by Lemming (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

In Haskell the direction of data flow symbolized by the notations differs amongst the notations. Both directions occur equally frequently:

from left to right:

function definition
 f x = x*x
(input left, output right)
 \ x -> x*x
do notation
 do f; g
monadic composition
 f >>= g

from right to left:

function application
 f x
 f $ x
(input right, applied function left)
 g . f
results of monads
 do x <- f
monadic composition
 g =<< f

1 Weblinks

2 See also

There is still something to translate from De/Flussrichtung