Emit info-level log message when package envs are loaded
ClosedPublic

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

Details

Summary

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-3.1.13.0/.ghc.environment.x86_64-linux-8.5.20180512
Loaded GHCi configuration from /home/hvr/.ghci
Prelude>

Addresses Trac #15145

Diff Detail

Repository
rGHC Glasgow Haskell Compiler
Lint
Automatic diff as part of commit; lint not applicable.
Unit
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.

LGTM.

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.