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

#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

#14029: Implement the "Add <&> to Data.Functor" proposal -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: supersven Type: task | Status: new 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): Wiki Page: | -------------------------------------+------------------------------------- Changes (by supersven): * owner: (none) => supersven -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14029#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14029: Implement the "Add <&> to Data.Functor" proposal -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: supersven Type: task | Status: new 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): Wiki Page: | -------------------------------------+------------------------------------- Comment (by supersven): Would it make sense to commit this as a small proposal to https://prime.haskell.org/, too? The Haskell Report 2010 and Prime are very sparse when it comes to Functors (only stating the laws). E.g. https://www.haskell.org/onlinereport/haskell2010/haskellch6.html#x13-1320006... But I think it would be reasonable to get the functions of "core" (i.e. base) type classes standardized. :) What to you think about this? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14029#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14029: Implement the "Add <&> to Data.Functor" proposal -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: supersven Type: task | Status: new 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): Wiki Page: | -------------------------------------+------------------------------------- Comment (by RyanGlScott): If you want to submit a separate proposal about this, then my all means go for it. But I think that's well out of the scope of this ticket, which simply aims to add a function to the `Data.Functor` module, and we certainly don't need to go through the Prime committee for just that. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14029#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14029: Implement the "Add <&> to Data.Functor" proposal -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: supersven Type: task | Status: new 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): Wiki Page: | -------------------------------------+------------------------------------- Comment (by supersven): Okay. Thanks for your fast response! :) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14029#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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: | -------------------------------------+------------------------------------- Changes (by supersven): * status: new => patch * differential: => Phab:D3800 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14029#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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

#14029: Implement the "Add <&> to Data.Functor" proposal -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: supersven Type: task | Status: patch Priority: normal | Milestone: 8.4.1 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: | -------------------------------------+------------------------------------- Changes (by bgamari): * milestone: => 8.4.1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14029#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14029: Implement the "Add <&> to Data.Functor" proposal -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: supersven Type: task | Status: closed Priority: normal | Milestone: 8.4.1 Component: libraries/base | Version: 8.0.1 Resolution: fixed | 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: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: patch => closed * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14029#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC