Fix package shadowing order (#4072)
authorSimon Marlow <marlowsd@gmail.com>
Wed, 19 May 2010 10:46:17 +0000 (10:46 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 19 May 2010 10:46:17 +0000 (10:46 +0000)
commit636c2750c90e540ed3d4fb66c8dd4dae876945e7
treeb3707972aea248b4adde26005b6523a38b918852
parent9318157b987052f5dbd4df19f2e8ba1beeabc8ee
Fix package shadowing order (#4072)

Later packages are supposed to shadow earlier ones in the stack,
unless the ordering is overriden with -package-id flags.
Unfortunately an earlier fix for something else had sorted the list of
packages so that it was in lexicographic order by installedPackageId,
and sadly our test (cabal/shadow) didn't pick this up because the
lexicographic ordering happened to work for the test.  I've now fixed
the test so it tries both orderings.
compiler/main/Packages.lhs