Hpack.Config

hpack-0.11.2: An alternative format for Haskell packages

Safe Haskell | None
Language | Haskell2010

Hpack.Config

# Documentation

packageConfig :: FilePath

readPackageConfig :: FilePath -> IO (Either String ([String], Package))

renamePackage :: String -> Package -> Package

packageDependencies :: Package -> [Dependency]

package :: String -> String -> Package

section :: a -> Section a

data Package

Constructors

Package |
Fields 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] packageLicense :: Maybe String packageLicenseFile :: Maybe FilePath packageTestedWith :: Maybe String packageFlags :: [Flag] packageExtraSourceFiles :: [FilePath] packageDataFiles :: [FilePath] packageSourceRepository :: Maybe SourceRepository packageLibrary :: Maybe (Section Library) packageExecutables :: [Section Executable] packageTests :: [Section Executable] packageBenchmarks :: [Section Executable]

Instances

Eq Package |
Show Package |

data Dependency

Constructors

Dependency |
Fields dependencyName :: String dependencyGitRef :: Maybe AddSource

Instances

Eq Dependency |
Ord Dependency |
Show Dependency |
IsString Dependency |
Generic Dependency |
FromJSON Dependency |
type Rep Dependency |

data AddSource

Constructors

GitRef GitUrl GitRef |
Local FilePath |

Instances

Eq AddSource |
Ord AddSource |
Show AddSource |

type GitUrl = String

type GitRef = String

type GhcOption = String

data Section a

Constructors

Section |
Fields sectionData :: a sectionSourceDirs :: [FilePath] sectionDependencies :: [Dependency] sectionDefaultExtensions :: [String] sectionOtherExtensions :: [String] sectionGhcOptions :: [GhcOption] sectionGhcProfOptions :: [GhcProfOption] sectionCppOptions :: [CppOption] sectionIncludeDirs :: [FilePath] sectionInstallIncludes :: [FilePath] sectionLdOptions :: [LdOption] sectionBuildable :: Maybe Bool sectionConditionals :: [Conditional]

Instances

Functor Section |
Foldable Section |
Traversable Section |
Eq a => Eq (Section a) |
Show a => Show (Section a) |

data Library

Constructors

Library |
Fields libraryExposed :: Maybe Bool libraryExposedModules :: [String] libraryOtherModules :: [String] libraryReexportedModules :: [String]

Instances

Eq Library |
Show Library |

data Executable

Constructors

Executable |
Fields executableName :: String executableMain :: FilePath executableOtherModules :: [String]

Instances

Eq Executable |
Show Executable |

data Conditional

Constructors

Conditional |
Fields conditionalCondition :: String conditionalThen :: Section () conditionalElse :: Maybe (Section ())

Instances

Eq Conditional |
Show Conditional |

data Flag

Constructors

Flag |
Fields flagName :: String flagDescription :: Maybe String flagManual :: Bool flagDefault :: Bool

Instances

Eq Flag |
Show Flag |

data SourceRepository

Constructors

SourceRepository |
Fields sourceRepositoryUrl :: String sourceRepositorySubdir :: Maybe String

Instances

Eq SourceRepository |
Show SourceRepository |