[GHC] #14029: Implement the "Add <&> to Data.Functor" proposal

GHC ghc-devs at haskell.org
Tue Jul 25 18:00:32 UTC 2017


#14029: Implement the "Add <&> to Data.Functor" proposal
-------------------------------------+-------------------------------------
           Reporter:  RyanGlScott    |             Owner:  (none)
               Type:  task           |            Status:  new
           Priority:  normal         |         Milestone:
          Component:                 |           Version:  8.0.1
  libraries/base                     |
           Keywords:  newcomer       |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 Back in August 2016, David Feuer
 [https://mail.haskell.org/pipermail/libraries/2016-August/027293.html
 proposed] adding this function (originally from `lens`) to `Data.Functor`:

 {{{#!hs
 (<&>) :: Functor f => f a -> (a -> b) -> f b
 as <&> f = f <$> as
 infixl 1 <&>
 }}}

 The proposal was well received, so let's implement it.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14029>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list