Safe Haskell | None |
---|---|
Language | Haskell98 |
Synopsis
- 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
Instances
Eq PackageDb Source # | |
Ord PackageDb Source # | |
Defined in HsDev.PackageDb.Types | |
Show PackageDb Source # | |
NFData PackageDb Source # | |
Defined in HsDev.PackageDb.Types | |
ToJSON PackageDb Source # | |
Defined in HsDev.PackageDb.Types | |
FromJSON PackageDb Source # | |
Formattable PackageDb Source # | |
Defined in HsDev.PackageDb.Types formattable :: PackageDb -> FormatFlags -> Formatted # | |
FromField PackageDb Source # | |
Defined in HsDev.Database.SQLite.Instances | |
ToField PackageDb Source # | |
Defined in HsDev.Database.SQLite.Instances | |
Paths PackageDb Source # | |
Defined in HsDev.PackageDb.Types | |
Display PackageDb Source # | |
newtype PackageDbStack Source #
Stack of PackageDb in reverse order
Instances
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