#14029: Implement the "Add <&> to Data.Functor" proposal -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: supersven Type: task | Status: patch Priority: normal | Milestone: Component: libraries/base | Version: 8.0.1 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3800 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"9cfabbb5267e72b8017d8dc04d8580f73f425aa8/ghc" 9cfabbb/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="9cfabbb5267e72b8017d8dc04d8580f73f425aa8" Add '<&>' operator to Data.Functor. '<&>' calls '<$>' with flipped arguments. This was proposed by David Feuer (https://mail.haskell.org/pipermail/libraries/2016-August/027293.html) and solves #14029. The implementation is a copy of the '<&>' operator in Control.Lens.Lens. Add tests for following Data.Functor operators: '<$>', '<&>', '<$' and '$>'. '<&>' was added for solving #14029. '<$>', '<$' and '$>' were probably untested. Reviewers: austin, hvr, bgamari, RyanGlScott Reviewed By: RyanGlScott Subscribers: RyanGlScott, rwbarton, thomie Differential Revision: https://phabricator.haskell.org/D3800 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14029#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler