Emit info-level log message when package envs are loaded

Authored by hvr on May 12 2018, 4:33 PM.



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. Trac #11389) to package
environment files.

For instance, this new notification looks like below for 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-
Loaded GHCi configuration from /home/hvr/.ghci

Addresses Trac #15145

Diff Detail

rGHC Glasgow Haskell Compiler
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
hvr created this revision.May 12 2018, 4:33 PM
hvr edited the summary of this revision. (Show Details)May 12 2018, 5:08 PM
angerman accepted this revision.May 12 2018, 11:18 PM
angerman added a subscriber: angerman.


This revision is now accepted and ready to land.May 12 2018, 11:18 PM
hvr edited the summary of this revision. (Show Details)May 13 2018, 4:38 AM
bgamari accepted this revision.May 13 2018, 10:54 AM

Looks reasonable to me.

This revision was automatically updated to reflect the committed changes.