Call hc-pkg to get the source package Id of all the packages
in the given package database.
This is much less information than with dump, but also rather
quicker. Note in particular that it does not include the
UnitId, just the source PackageId which is not
necessarily unique in any package db.
Given the package description and a PackageDescription (used to
determine if a package name is internal or not), sort the components
in dependency order (fewest dependencies first). This is NOT
necessarily the build order (although it is in the absence of
Backpack.)
NubListR : A right-biased version of NubList. That is
toNubListR ["-XNoFoo", "-XFoo", "-XNoFoo"] will result in
["-XFoo", "-XNoFoo"], unlike the normal NubList, which
is left-biased. Built on top of ordNubRight and
listUnionRight.