[commit: ghc] ghc-8.0: Document meaning of order of --package-db flags, fixes #12485. (44e823d)
git at git.haskell.org
git at git.haskell.org
Mon Sep 12 12:42:58 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : ghc-8.0
Link : http://ghc.haskell.org/trac/ghc/changeset/44e823d39195f8cddd2ae4c587292a3639502050/ghc
>---------------------------------------------------------------
commit 44e823d39195f8cddd2ae4c587292a3639502050
Author: Edward Z. Yang <ezyang at cs.stanford.edu>
Date: Mon Sep 5 19:19:57 2016 -0400
Document meaning of order of --package-db flags, fixes #12485.
Test Plan: none
Reviewers: austin, niteria, bgamari
Reviewed By: niteria
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D2514
GHC Trac Issues: #12485
(cherry picked from commit 5eab6a0da5f22a47d04b97a0ec8988346675b33b)
>---------------------------------------------------------------
44e823d39195f8cddd2ae4c587292a3639502050
docs/users_guide/packages.rst | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/docs/users_guide/packages.rst b/docs/users_guide/packages.rst
index 15c97c7..d3da125 100644
--- a/docs/users_guide/packages.rst
+++ b/docs/users_guide/packages.rst
@@ -384,6 +384,11 @@ stack. Several command line options described below can further manipulate this
initial stack. You can see GHC's effective package database stack by running
GHC with the :ghc-flag:`-v` flag.
+This stack structure means that the order of :ghc-flag:`-package-db` flags or
+:envvar:`GHC_PACKAGE_PATH` is important. Each substack of the stack
+must be well formed (packages in databases on top of the stack can refer
+to packages below, but not vice versa).
+
*Package shadowing:* When multiple package databases are in use it
is possible, though rarely, that the same installed package id is present in
more than one database. In that case, packages closer to the top of the stack
More information about the ghc-commits
mailing list