Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data DecodeOptions = DecodeOptions {}
- defaultDecodeOptions :: DecodeOptions
- packageConfig :: FilePath
- data DecodeResult = DecodeResult {}
- readPackageConfig :: DecodeOptions -> IO (Either String DecodeResult)
- renamePackage :: String -> Package -> Package
- packageDependencies :: Package -> [(String, DependencyVersion)]
- package :: String -> String -> Package
- section :: a -> Section a
- data Package = Package {
- packageName :: String
- packageVersion :: String
- packageSynopsis :: Maybe String
- packageDescription :: Maybe String
- packageHomepage :: Maybe String
- packageBugReports :: Maybe String
- packageCategory :: Maybe String
- packageStability :: Maybe String
- packageAuthor :: [String]
- packageMaintainer :: [String]
- packageCopyright :: [String]
- packageBuildType :: BuildType
- packageLicense :: Maybe String
- packageLicenseFile :: [FilePath]
- packageTestedWith :: Maybe String
- packageFlags :: [Flag]
- packageExtraSourceFiles :: [FilePath]
- packageExtraDocFiles :: [FilePath]
- packageDataFiles :: [FilePath]
- packageDataDir :: Maybe FilePath
- packageSourceRepository :: Maybe SourceRepository
- packageCustomSetup :: Maybe CustomSetup
- packageLibrary :: Maybe (Section Library)
- packageInternalLibraries :: Map String (Section Library)
- packageExecutables :: Map String (Section Executable)
- packageTests :: Map String (Section Executable)
- packageBenchmarks :: Map String (Section Executable)
- packageVerbatim :: [Verbatim]
- newtype Dependencies = Dependencies {}
- data DependencyVersion
- data SourceDependency
- type GitRef = String
- type GitUrl = String
- type GhcOption = String
- data Verbatim
- data VerbatimValue
- data CustomSetup = CustomSetup {}
- data Section a = Section {
- sectionData :: a
- sectionSourceDirs :: [FilePath]
- sectionDependencies :: Dependencies
- sectionPkgConfigDependencies :: [String]
- sectionDefaultExtensions :: [String]
- sectionOtherExtensions :: [String]
- sectionGhcOptions :: [GhcOption]
- sectionGhcProfOptions :: [GhcProfOption]
- sectionGhcjsOptions :: [GhcjsOption]
- sectionCppOptions :: [CppOption]
- sectionCcOptions :: [CcOption]
- sectionCSources :: [FilePath]
- sectionCxxOptions :: [CxxOption]
- sectionCxxSources :: [FilePath]
- sectionJsSources :: [FilePath]
- sectionExtraLibDirs :: [FilePath]
- sectionExtraLibraries :: [FilePath]
- sectionExtraFrameworksDirs :: [FilePath]
- sectionFrameworks :: [FilePath]
- sectionIncludeDirs :: [FilePath]
- sectionInstallIncludes :: [FilePath]
- sectionLdOptions :: [LdOption]
- sectionBuildable :: Maybe Bool
- sectionConditionals :: [Conditional (Section a)]
- sectionBuildTools :: Dependencies
- sectionVerbatim :: [Verbatim]
- data Library = Library {}
- data Executable = Executable {}
- data Conditional a = Conditional {}
- data Flag = Flag {}
- data SourceRepository = SourceRepository {}
- data BuildType
- type GhcProfOption = String
- type GhcjsOption = String
- type CppOption = String
- type CcOption = String
- type LdOption = String
Documentation
NOTE: This module is exposed to allow integration of Hpack into other tools. It is not meant for general use by end users. The following caveats apply:
- The API is undocumented, consult the source instead.
- The exposed types and functions primarily serve Hpack's own needs, not that of a public API. Breaking changes can happen as Hpack evolves.
As an Hpack user you either want to use the hpack
executable or a build
tool that supports Hpack (e.g. stack
or cabal2nix
).
data DecodeOptions Source #
packageDependencies :: Package -> [(String, DependencyVersion)] Source #
newtype Dependencies Source #
data DependencyVersion Source #
data SourceDependency Source #
data VerbatimValue Source #
data CustomSetup Source #
Section | |
|
Library | |
|
data Executable Source #
data Conditional a Source #
Conditional | |
|
Functor Conditional Source # | |
Foldable Conditional Source # | |
Traversable Conditional Source # | |
Eq a => Eq (Conditional a) Source # | |
Show a => Show (Conditional a) Source # | |
Flag | |
|
data SourceRepository Source #
type GhcProfOption = String Source #
type GhcjsOption = String Source #