hsdev-0.3.1.3: Haskell development library

Safe HaskellNone
LanguageHaskell98

HsDev.PackageDb.Types

Synopsis

Documentation

newtype PackageDbStack Source #

Stack of PackageDb in reverse order

Constructors

PackageDbStack 

Instances

Eq PackageDbStack Source # 
Ord PackageDbStack Source # 
Show PackageDbStack Source # 
NFData PackageDbStack Source # 

Methods

rnf :: PackageDbStack -> () #

ToJSON PackageDbStack Source # 
FromJSON PackageDbStack Source # 
Formattable PackageDbStack Source # 
Paths PackageDbStack Source # 
Display PackageDbStack Source # 
EnumContents PackageDbStack Source # 

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