[GHC] #11389: Print a message when loading a .ghci file

GHC ghc-devs at haskell.org
Sun May 13 17:34:45 UTC 2018


#11389: Print a message when loading a .ghci file
-------------------------------------+-------------------------------------
        Reporter:  rwbarton          |                Owner:  kseo
            Type:  feature request   |               Status:  closed
        Priority:  normal            |            Milestone:  8.0.1
       Component:  GHCi              |              Version:  7.8.4
      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):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

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

 In [changeset:"00049e2dce93b1e468c3fde3287371eb988aafdc/ghc"
 00049e2d/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="00049e2dce93b1e468c3fde3287371eb988aafdc"
 Emit info-level log message when package envs are loaded

 A common complaint with the new package environment files feature is
 that it's not obvious when package environments have been picked up.
 This patch applies the same strategy that was already used for `.ghci`
 files
 (which exhibit similar potential for confusion, c.f. #11389) to package
 environment files.

 For instance, this new notification looks like below for a GHCi invocation
 which
 loads both, a GHCi configuration as well as a package environment:

   GHCi, version 8.5.20180512: http://www.haskell.org/ghc/  :? for help
   Loaded package environment from
 /tmp/parsec-3.1.13.0/.ghc.environment.x86_64-linux-8.5.20180512
   Loaded GHCi configuration from /home/hvr/.ghci
   Prelude>

 Addresses #15145

 Reviewed By: bgamari, angerman

 GHC Trac Issues: #15145

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

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


More information about the ghc-tickets mailing list