• Herbert Valerio Riedel's avatar
    Emit info-level log message when package envs are loaded · 00049e2d
    Herbert Valerio Riedel authored
    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-
      Loaded GHCi configuration from /home/hvr/.ghci
    Addresses #15145
    Reviewed By: bgamari, angerman
    GHC Trac Issues: #15145
    Differential Revision: https://phabricator.haskell.org/D4689