[GHC] #10113: Re-export (<$>) from Prelude

GHC ghc-devs at haskell.org
Sat Mar 7 10:36:17 UTC 2015


#10113: Re-export (<$>) from Prelude
-------------------------------------+-------------------------------------
        Reporter:  hvr               |                   Owner:
            Type:  feature request   |                  Status:  new
        Priority:  highest           |               Milestone:  7.10.1
       Component:  libraries/base    |                 Version:  7.10.1-rc2
      Resolution:                    |                Keywords:  AMP
Operating System:  Unknown/Multiple  |  report-impact
 Type of failure:  None/Unknown      |            Architecture:
      Blocked By:                    |  Unknown/Multiple
 Related Tickets:  #4834             |               Test Case:
                                     |                Blocking:
                                     |  Differential Revisions:  Phab:D680
-------------------------------------+-------------------------------------

Comment (by Herbert Valerio Riedel <hvr@…>):

 In [changeset:"eb3661f2b9f8472f3714774126ebe1183484dd85/ghc"]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="eb3661f2b9f8472f3714774126ebe1183484dd85"
 Re-export `<$>` from Prelude (#10113)

 Whether to re-export the `<$>` non-method operator from `Prelude` wasn't
 explicitly covered in the original AMP proposal[1], but it turns out that
 not doing so forces most code that makes use of applicatives to import
 `Data.Functor` or `Control.Applicative` just to get that operator into
 scope.  To this end, it was proposed to add `<$>` to Prelude as well[2].

 The down-side is that this increases the amount of redundant-import
 warnings triggered, as well as the relatively minor issue of stealing
 the `<$>` operator from the default namespace for good (although at this
 point `<$>` is supposed to be ubiquitous anyway due to `Applicative`
 being implicitly required into the next Haskell Report)

  [1]: https://wiki.haskell.org/Functor-Applicative-Monad_Proposal
  [2]: http://thread.gmane.org/gmane.comp.lang.haskell.libraries/24161

 Reviewed By: austin, ekmett

 Differential Revision: https://phabricator.haskell.org/D680
 }}}

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


More information about the ghc-tickets mailing list