list package:Cabal

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.
listDirectory dir returns a list of all entries in dir without the special entries (. and ..). The operation may fail with:
  • HardwareFault A physical I/O error has occurred. [EIO]
  • InvalidArgument The operand is not a valid directory name. [ENAMETOOLONG, ELOOP]
  • isDoesNotExistError The directory does not exist. [ENOENT, ENOTDIR]
  • isPermissionError The process has insufficient privileges to perform the operation. [EACCES]
  • isFullError Insufficient resources are available to perform the operation. [EMFILE, ENFILE]
  • InappropriateType The path refers to an existing non-directory object. [ENOTDIR]
List all source files of a package. Since Cabal-3.4 returns a single list. There shouldn't be any executable files, they are hardly portable.
A variant of listPackageSources with configurable die. Note: may still die directly. For example on missing include file. Since @3.4.0.0
Like "Data.List.union", but has O(n log n) complexity instead of O(n^2).
A right-biased version of listUnion. Example:
>>> listUnion [1,2,3,4,3] [2,1,1]
[1,2,3,4,3]
>>> listUnionRight [1,2,3,4,3] [2,1,1]
[4,3,2,1,1]
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.)
Converts a Flag value to a list.
Merge the elements of a list Flag with another list Flag.
Build an index out of a bunch of packages. If there are duplicates by UnitId then later ones mask earlier ones.
NubList : A de-duplicated list that maintains the original order.
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.
Lift a function over lists to a function over NubLists.
Lift a function over lists to a function over NubListRs.
Smart constructor for the NubList type.