Safe Haskell | None |
---|---|
Language | Haskell98 |
- data PackageDb
- = GlobalDb
- | UserDb
- | PackageDb {
- _packageDb :: Path
- packageDb :: Traversal' PackageDb Path
- newtype PackageDbStack = PackageDbStack {
- _packageDbStack :: [PackageDb]
- packageDbStack :: Iso' PackageDbStack [PackageDb]
- mkPackageDbStack :: [PackageDb] -> PackageDbStack
- globalDb :: PackageDbStack
- userDb :: PackageDbStack
- fromPackageDbs :: [Path] -> PackageDbStack
- topPackageDb :: PackageDbStack -> PackageDb
- packageDbs :: PackageDbStack -> [PackageDb]
- packageDbStacks :: PackageDbStack -> [PackageDbStack]
- isSubStack :: PackageDbStack -> PackageDbStack -> Bool
- packageDbOpt :: PackageDb -> String
- packageDbStackOpts :: PackageDbStack -> [String]
Documentation
newtype PackageDbStack Source #
Stack of PackageDb in reverse order
mkPackageDbStack :: [PackageDb] -> PackageDbStack Source #
Make PackageDbStack
from list of PackageDb
globalDb :: PackageDbStack Source #
Global db stack
userDb :: PackageDbStack Source #
User db stack
fromPackageDbs :: [Path] -> PackageDbStack Source #
Make package-db stack from paths
topPackageDb :: PackageDbStack -> PackageDb Source #
Get top package-db for package-db stack
packageDbs :: PackageDbStack -> [PackageDb] Source #
Get list of package-db in stack, adds additional global-db at bottom
packageDbStacks :: PackageDbStack -> [PackageDbStack] Source #
Get stacks for each package-db in stack
isSubStack :: PackageDbStack -> PackageDbStack -> Bool Source #
Is one package-db stack substack of another
packageDbOpt :: PackageDb -> String Source #
Get ghc options for package-db
packageDbStackOpts :: PackageDbStack -> [String] Source #
Get ghc options for package-db stack