28 ms·
This is included in the popular Control.Lens package since it sometimes has natural right-to-left composition. It's still unnatural for 99% of Haskell code you'
by tel 14y ago
This is included in the popular Control.Lens package since it sometimes has natural right-to-left composition. It's still unnatural for 99% of Haskell code you'll see, but (&) = flip ($) seems to be cemented as the "correct" representation now.
It's a wontfix on the language spec itself, though.
- vimes656 14y agoIn Control.Lens package also comes with <&> which is the flipped version of <$> with the right infix priority, which I find it even handier than $. AFAIK, there is very little sample code out there with these flipped operators, but to a programmer used to OOP, using them may be more natural.
- PeterisP 14y agoMany current elements of modern languages have been wontfix'es in them for many years.
- gizmo686 14y agoIt was closed with the message: "I'm closing this ticket while the discussion is going on on the libraries list. Please reopen, or open a new ticket, if a positive decision is reached" [1] The discussion itself [2] is basically bikeshedding at this point. [1] http://hackage.haskell.org/trac/ghc/ticket/7434 http://hackage.haskell.org/trac/ghc/ticket/7434 [2] http://www.haskell.org/pipermail/libraries/2012-November/018832.html http://www.haskell.org/pipermail/libraries/2012-November/018... I took both of these links directly from lelf's comment in this thread.
- arianvanp 14y agoright-to-left application, not composition