Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data DecodeOptions = DecodeOptions {}
- newtype ProgramName = ProgramName String
- defaultDecodeOptions :: DecodeOptions
- packageConfig :: FilePath
- data DecodeResult = DecodeResult {}
- readPackageConfig :: DecodeOptions -> IO (Either String DecodeResult)
- renamePackage :: String -> Package -> Package
- packageDependencies :: Package -> [(String, DependencyInfo)]
- 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 {
- unDependencies :: Map String DependencyInfo
- data VersionConstraint
- data DependencyVersion = DependencyVersion (Maybe SourceDependency) VersionConstraint
- data SourceDependency
- type GitRef = String
- type GitUrl = String
- data BuildTool
- newtype SystemBuildTools = SystemBuildTools {}
- type GhcOption = String
- data Verbatim
- data VerbatimValue
- verbatimValueToString :: VerbatimValue -> String
- 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 :: Map BuildTool DependencyVersion
- sectionSystemBuildTools :: SystemBuildTools
- 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 #
newtype ProgramName Source #
Instances
Eq ProgramName Source # | |
Defined in Hpack.Config (==) :: ProgramName -> ProgramName -> Bool # (/=) :: ProgramName -> ProgramName -> Bool # | |
Show ProgramName Source # | |
Defined in Hpack.Config showsPrec :: Int -> ProgramName -> ShowS # show :: ProgramName -> String # showList :: [ProgramName] -> ShowS # | |
IsString ProgramName Source # | |
Defined in Hpack.Config fromString :: String -> ProgramName # |
data DecodeResult Source #
Instances
Eq DecodeResult Source # | |
Defined in Hpack.Config (==) :: DecodeResult -> DecodeResult -> Bool # (/=) :: DecodeResult -> DecodeResult -> Bool # | |
Show DecodeResult Source # | |
Defined in Hpack.Config showsPrec :: Int -> DecodeResult -> ShowS # show :: DecodeResult -> String # showList :: [DecodeResult] -> ShowS # |
packageDependencies :: Package -> [(String, DependencyInfo)] Source #
newtype Dependencies Source #
Dependencies | |
|
Instances
data VersionConstraint Source #
Instances
Eq VersionConstraint Source # | |
Defined in Hpack.Syntax.DependencyVersion (==) :: VersionConstraint -> VersionConstraint -> Bool # (/=) :: VersionConstraint -> VersionConstraint -> Bool # | |
Show VersionConstraint Source # | |
Defined in Hpack.Syntax.DependencyVersion showsPrec :: Int -> VersionConstraint -> ShowS # show :: VersionConstraint -> String # showList :: [VersionConstraint] -> ShowS # | |
FromValue VersionConstraint Source # | |
Defined in Hpack.Syntax.DependencyVersion |
data DependencyVersion Source #
Instances
Eq DependencyVersion Source # | |
Defined in Hpack.Syntax.DependencyVersion (==) :: DependencyVersion -> DependencyVersion -> Bool # (/=) :: DependencyVersion -> DependencyVersion -> Bool # | |
Show DependencyVersion Source # | |
Defined in Hpack.Syntax.DependencyVersion showsPrec :: Int -> DependencyVersion -> ShowS # show :: DependencyVersion -> String # showList :: [DependencyVersion] -> ShowS # |
data SourceDependency Source #
Instances
Eq SourceDependency Source # | |
Defined in Hpack.Syntax.DependencyVersion (==) :: SourceDependency -> SourceDependency -> Bool # (/=) :: SourceDependency -> SourceDependency -> Bool # | |
Show SourceDependency Source # | |
Defined in Hpack.Syntax.DependencyVersion showsPrec :: Int -> SourceDependency -> ShowS # show :: SourceDependency -> String # showList :: [SourceDependency] -> ShowS # |
newtype SystemBuildTools Source #
Instances
Eq SystemBuildTools Source # | |
Defined in Hpack.Syntax.BuildTools (==) :: SystemBuildTools -> SystemBuildTools -> Bool # (/=) :: SystemBuildTools -> SystemBuildTools -> Bool # | |
Show SystemBuildTools Source # | |
Defined in Hpack.Syntax.BuildTools showsPrec :: Int -> SystemBuildTools -> ShowS # show :: SystemBuildTools -> String # showList :: [SystemBuildTools] -> ShowS # | |
Semigroup SystemBuildTools Source # | |
Defined in Hpack.Syntax.BuildTools (<>) :: SystemBuildTools -> SystemBuildTools -> SystemBuildTools # sconcat :: NonEmpty SystemBuildTools -> SystemBuildTools # stimes :: Integral b => b -> SystemBuildTools -> SystemBuildTools # | |
Monoid SystemBuildTools Source # | |
Defined in Hpack.Syntax.BuildTools | |
FromValue SystemBuildTools Source # | |
Defined in Hpack.Syntax.BuildTools |
data VerbatimValue Source #
Instances
Eq VerbatimValue Source # | |
Defined in Hpack.Config (==) :: VerbatimValue -> VerbatimValue -> Bool # (/=) :: VerbatimValue -> VerbatimValue -> Bool # | |
Show VerbatimValue Source # | |
Defined in Hpack.Config showsPrec :: Int -> VerbatimValue -> ShowS # show :: VerbatimValue -> String # showList :: [VerbatimValue] -> ShowS # | |
FromValue VerbatimValue Source # | |
Defined in Hpack.Config |
data CustomSetup Source #
Instances
Eq CustomSetup Source # | |
Defined in Hpack.Config (==) :: CustomSetup -> CustomSetup -> Bool # (/=) :: CustomSetup -> CustomSetup -> Bool # | |
Show CustomSetup Source # | |
Defined in Hpack.Config showsPrec :: Int -> CustomSetup -> ShowS # show :: CustomSetup -> String # showList :: [CustomSetup] -> ShowS # |
Section | |
|
Instances
Functor Section Source # | |
Foldable Section Source # | |
Defined in Hpack.Config fold :: Monoid m => Section m -> m # foldMap :: Monoid m => (a -> m) -> Section a -> m # foldr :: (a -> b -> b) -> b -> Section a -> b # foldr' :: (a -> b -> b) -> b -> Section a -> b # foldl :: (b -> a -> b) -> b -> Section a -> b # foldl' :: (b -> a -> b) -> b -> Section a -> b # foldr1 :: (a -> a -> a) -> Section a -> a # foldl1 :: (a -> a -> a) -> Section a -> a # elem :: Eq a => a -> Section a -> Bool # maximum :: Ord a => Section a -> a # minimum :: Ord a => Section a -> a # | |
Traversable Section Source # | |
Eq a => Eq (Section a) Source # | |
Show a => Show (Section a) Source # | |
Library | |
|
data Executable Source #
Instances
Eq Executable Source # | |
Defined in Hpack.Config (==) :: Executable -> Executable -> Bool # (/=) :: Executable -> Executable -> Bool # | |
Show Executable Source # | |
Defined in Hpack.Config showsPrec :: Int -> Executable -> ShowS # show :: Executable -> String # showList :: [Executable] -> ShowS # |
data Conditional a Source #
Conditional | |
|
Instances
Flag | |
|
data SourceRepository Source #
Instances
Eq SourceRepository Source # | |
Defined in Hpack.Config (==) :: SourceRepository -> SourceRepository -> Bool # (/=) :: SourceRepository -> SourceRepository -> Bool # | |
Show SourceRepository Source # | |
Defined in Hpack.Config showsPrec :: Int -> SourceRepository -> ShowS # show :: SourceRepository -> String # showList :: [SourceRepository] -> ShowS # |
Instances
Bounded BuildType Source # | |
Enum BuildType Source # | |
Defined in Hpack.Config succ :: BuildType -> BuildType # pred :: BuildType -> BuildType # fromEnum :: BuildType -> Int # enumFrom :: BuildType -> [BuildType] # enumFromThen :: BuildType -> BuildType -> [BuildType] # enumFromTo :: BuildType -> BuildType -> [BuildType] # enumFromThenTo :: BuildType -> BuildType -> BuildType -> [BuildType] # | |
Eq BuildType Source # | |
Show BuildType Source # | |
Generic BuildType Source # | |
FromValue BuildType Source # | |
type Rep BuildType Source # | |
Defined in Hpack.Config type Rep BuildType = D1 (MetaData "BuildType" "Hpack.Config" "hpack-0.31.1-FaM9UiwyKTmeFWkLWsjE3" False) ((C1 (MetaCons "Simple" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Configure" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "Make" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Custom" PrefixI False) (U1 :: Type -> Type))) |
type GhcProfOption = String Source #
type GhcjsOption = String Source #