Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Generate haddocks
Synopsis
- generateDepsHaddockIndex :: (HasCompiler env, HasProcessContext env, HasTerm env) => BaseConfigOpts -> Map GhcPkgId DumpPackage -> Map GhcPkgId DumpPackage -> Map GhcPkgId DumpPackage -> [LocalPackage] -> RIO env ()
- generateLocalHaddockIndex :: (HasCompiler env, HasProcessContext env, HasTerm env) => BaseConfigOpts -> Map GhcPkgId DumpPackage -> [LocalPackage] -> RIO env ()
- generateSnapHaddockIndex :: (HasCompiler env, HasProcessContext env, HasTerm env) => BaseConfigOpts -> Map GhcPkgId DumpPackage -> Map GhcPkgId DumpPackage -> RIO env ()
- openHaddocksInBrowser :: HasTerm env => BaseConfigOpts -> Map PackageName (PackageIdentifier, InstallLocation) -> Set PackageName -> RIO env ()
- shouldHaddockDeps :: BuildOpts -> Bool
- shouldHaddockPackage :: BuildOpts -> Set PackageName -> PackageName -> Bool
- generateLocalHaddockForHackageArchives :: (HasEnvConfig env, HasTerm env) => [LocalPackage] -> RIO env ()
Documentation
generateDepsHaddockIndex Source #
:: (HasCompiler env, HasProcessContext env, HasTerm env) | |
=> BaseConfigOpts | |
-> Map GhcPkgId DumpPackage | Global dump information |
-> Map GhcPkgId DumpPackage | Snapshot dump information |
-> Map GhcPkgId DumpPackage | Local dump information |
-> [LocalPackage] | |
-> RIO env () |
Generate Haddock index and contents for local packages and their dependencies.
generateLocalHaddockIndex Source #
:: (HasCompiler env, HasProcessContext env, HasTerm env) | |
=> BaseConfigOpts | |
-> Map GhcPkgId DumpPackage | Local package dump |
-> [LocalPackage] | |
-> RIO env () |
Generate Haddock index and contents for local packages.
generateSnapHaddockIndex Source #
:: (HasCompiler env, HasProcessContext env, HasTerm env) | |
=> BaseConfigOpts | |
-> Map GhcPkgId DumpPackage | Global package dump |
-> Map GhcPkgId DumpPackage | Snapshot package dump |
-> RIO env () |
Generate Haddock index and contents for all snapshot packages.
openHaddocksInBrowser Source #
:: HasTerm env | |
=> BaseConfigOpts | |
-> Map PackageName (PackageIdentifier, InstallLocation) | Available packages and their locations for the current project |
-> Set PackageName | Build targets as determined by |
-> RIO env () |
shouldHaddockDeps :: BuildOpts -> Bool Source #
Determine whether to build haddocks for dependencies.
:: BuildOpts | |
-> Set PackageName | Packages that we want to generate haddocks for in any case (whether or not we are going to generate haddocks for dependencies) |
-> PackageName | |
-> Bool |
Determine whether we should haddock for a package.
generateLocalHaddockForHackageArchives :: (HasEnvConfig env, HasTerm env) => [LocalPackage] -> RIO env () Source #