Flipped function application
Ben Millwood
haskell
Thu Oct 10 17:37:29 UTC 2013
I think this thread probably has enough opinions in it without me
throwing in another, but here's a factual point:
On Wed, Oct 09, 2013 at 11:51:39AM -0700, Wvv wrote:
>x # f = f x
>infixl 1 # -- infix (#) must conflict neither ($), nor (.)
[...]
>1) xs # map $ someLong function
With your fixity declaration, that parses as
(xs # map) $ someLong function
If you want it to parse as `xs # (map $ ...)`, you have no choice but to
make # infixr 0. But then
>3) myString # lines # map words # concat # filter myFilter # unwords
doesn't work.
More information about the Libraries
mailing list