Skip to content

Mixing `-package-env` and explicit package flags doesn't seem to work.

Summary

Mixing -package-env and explicit package flags doesn't seem to work.

Steps to reproduce

% ghci -package-env=default -hide-all-packages -clear-package-db
GHCi, version 8.4.4: http://www.haskell.org/ghc/  :? for help
Loaded package environment from /home/ogre/.ghc/x86_64-linux-8.4.4/environments/default
Loaded GHCi configuration from /home/ogre/.ghci

Expected behavior

I'd expect either empty package environment, or at least a warning that latter package database flags are ignored.

Environment

  • GHC version used: 8.4.4, 8.6.44

Optional:

  • Operating System: Linux
  • System Architecture: x86_64
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information