Friedrich Dominicus wrote:

> infixl 9 .|
> (.|) :: (a -> b) -> (b -> c) -> a -> c
> g .| f = f . g

(|.) = flip (.)
might be more readable (depending on what one is used to read),
and the type declaration you gave seems to be the most general
possible anyway, i.e. it does not carry any information.

General question:

Where does the habit to use "flip (.)" in many FP people come
from? In your posting, it seems to be influenced by unix pipes,
and Fokkinga in his papers often uses a semicolon for this
purpose. IMHO it is mostly counterintuitive (except for
forth-people whose brains run backward :-)).

Ralf

Reply via email to