[Haskell-cafe] Fixity of ($) and (.) vs. (&) and (>>>)

Frederik Hanghøj Iversen fhi.1990 at gmail.com
Thu Aug 2 20:55:18 UTC 2018


With function composition I can easily write something like

    h . g . f $ expr

However if I want to write the equivalent in left-to-right composition
style:

    expr & f >>> g >>> h

This is not possible due to a parsing error arising from the fixity of the
operators. (>>>) is provided by Control.Arrow and (&) by Data.Function. My
question is, would it not be better to *decrement* the fixity of (&) by one
or *increment* the fixity of (>>>) by one (probably rather the latter)?

-- 
Regards
*Frederik Hanghøj Iversen*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20180802/d3551b8a/attachment.html>


More information about the Haskell-Cafe mailing list