Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- getCabalDeps :: FilePath -> IO (Version, [FilePath])
- getCabalDepsV :: Verbosity -> FilePath -> IO (Version, [FilePath])
- getCabalDepsA :: FilePath -> Action (Version, [FilePath])
- shakeVerbosityToCabalVerbosity :: Verbosity -> Verbosity
- hsOracle :: (RuleResult q ~ a, q ~ a, ShakeValue q) => Rules (q -> Action a)
- cabalOracle :: Rules (CabalVersion -> Action String)
- data HsCompiler
- platform :: String
- hsCompiler :: HsCompiler -> String
- prettyShow :: Pretty a => a -> String
Documentation
getCabalDeps :: FilePath -> IO (Version, [FilePath]) Source #
Get library dependencies from a .cabal
file. This will only work for
.hs
files; module signatures are not supported.
getCabalDepsA :: FilePath -> Action (Version, [FilePath]) Source #
Get cabal dependencies, respecting verbosity level given to shake.
shakeVerbosityToCabalVerbosity :: Verbosity -> Verbosity Source #
Assign each shake Verbosity
level to a Cabal Verbosity
level.
Oracles
hsOracle :: (RuleResult q ~ a, q ~ a, ShakeValue q) => Rules (q -> Action a) Source #
Use this for tracking HsCompiler
Since: 0.2.1.0
cabalOracle :: Rules (CabalVersion -> Action String) Source #
Use this to track the version of cabal globally available
Since: 0.2.1.0
Types
data HsCompiler Source #
Instances
Helper functions
hsCompiler :: HsCompiler -> String Source #
Reëxports from Distribution.Version
prettyShow :: Pretty a => a -> String #