-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/

-- | An alternative format for Haskell packages
--   
--   See README at https://github.com/sol/hpack#readme
@package hpack
@version 0.18.1

module Hpack.Yaml
decodeYaml :: FromJSON a => FilePath -> IO (Either String a)

module Hpack.Config
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
Package :: String -> String -> Maybe String -> Maybe String -> Maybe String -> Maybe String -> Maybe String -> Maybe String -> [String] -> [String] -> [String] -> BuildType -> Maybe String -> [FilePath] -> Maybe String -> [Flag] -> [FilePath] -> [FilePath] -> Maybe SourceRepository -> Maybe CustomSetup -> Maybe (Section Library) -> [Section Executable] -> [Section Executable] -> [Section Executable] -> Package
[packageName] :: Package -> String
[packageVersion] :: Package -> String
[packageSynopsis] :: Package -> Maybe String
[packageDescription] :: Package -> Maybe String
[packageHomepage] :: Package -> Maybe String
[packageBugReports] :: Package -> Maybe String
[packageCategory] :: Package -> Maybe String
[packageStability] :: Package -> Maybe String
[packageAuthor] :: Package -> [String]
[packageMaintainer] :: Package -> [String]
[packageCopyright] :: Package -> [String]
[packageBuildType] :: Package -> BuildType
[packageLicense] :: Package -> Maybe String
[packageLicenseFile] :: Package -> [FilePath]
[packageTestedWith] :: Package -> Maybe String
[packageFlags] :: Package -> [Flag]
[packageExtraSourceFiles] :: Package -> [FilePath]
[packageDataFiles] :: Package -> [FilePath]
[packageSourceRepository] :: Package -> Maybe SourceRepository
[packageCustomSetup] :: Package -> Maybe CustomSetup
[packageLibrary] :: Package -> Maybe (Section Library)
[packageExecutables] :: Package -> [Section Executable]
[packageTests] :: Package -> [Section Executable]
[packageBenchmarks] :: Package -> [Section Executable]
data Dependency
Dependency :: String -> Maybe AddSource -> Dependency
[dependencyName] :: Dependency -> String
[dependencyGitRef] :: Dependency -> Maybe AddSource
data AddSource
GitRef :: GitUrl -> GitRef -> (Maybe FilePath) -> AddSource
Local :: FilePath -> AddSource
type GitUrl = String
type GitRef = String
type GhcOption = String
data CustomSetup
CustomSetup :: [Dependency] -> CustomSetup
[customSetupDependencies] :: CustomSetup -> [Dependency]
data Section a
Section :: a -> [FilePath] -> [Dependency] -> [String] -> [String] -> [GhcOption] -> [GhcProfOption] -> [GhcjsOption] -> [CppOption] -> [CcOption] -> [FilePath] -> [FilePath] -> [FilePath] -> [FilePath] -> [FilePath] -> [FilePath] -> [LdOption] -> Maybe Bool -> [Conditional] -> [Dependency] -> Section a
[sectionData] :: Section a -> a
[sectionSourceDirs] :: Section a -> [FilePath]
[sectionDependencies] :: Section a -> [Dependency]
[sectionDefaultExtensions] :: Section a -> [String]
[sectionOtherExtensions] :: Section a -> [String]
[sectionGhcOptions] :: Section a -> [GhcOption]
[sectionGhcProfOptions] :: Section a -> [GhcProfOption]
[sectionGhcjsOptions] :: Section a -> [GhcjsOption]
[sectionCppOptions] :: Section a -> [CppOption]
[sectionCcOptions] :: Section a -> [CcOption]
[sectionCSources] :: Section a -> [FilePath]
[sectionJsSources] :: Section a -> [FilePath]
[sectionExtraLibDirs] :: Section a -> [FilePath]
[sectionExtraLibraries] :: Section a -> [FilePath]
[sectionIncludeDirs] :: Section a -> [FilePath]
[sectionInstallIncludes] :: Section a -> [FilePath]
[sectionLdOptions] :: Section a -> [LdOption]
[sectionBuildable] :: Section a -> Maybe Bool
[sectionConditionals] :: Section a -> [Conditional]
[sectionBuildTools] :: Section a -> [Dependency]
data Library
Library :: Maybe Bool -> [String] -> [String] -> [String] -> Library
[libraryExposed] :: Library -> Maybe Bool
[libraryExposedModules] :: Library -> [String]
[libraryOtherModules] :: Library -> [String]
[libraryReexportedModules] :: Library -> [String]
data Executable
Executable :: String -> FilePath -> [String] -> Executable
[executableName] :: Executable -> String
[executableMain] :: Executable -> FilePath
[executableOtherModules] :: Executable -> [String]
data Conditional
Conditional :: String -> Section () -> Maybe (Section ()) -> Conditional
[conditionalCondition] :: Conditional -> String
[conditionalThen] :: Conditional -> Section ()
[conditionalElse] :: Conditional -> Maybe (Section ())
data Flag
Flag :: String -> Maybe String -> Bool -> Bool -> Flag
[flagName] :: Flag -> String
[flagDescription] :: Flag -> Maybe String
[flagManual] :: Flag -> Bool
[flagDefault] :: Flag -> Bool
data SourceRepository
SourceRepository :: String -> Maybe String -> SourceRepository
[sourceRepositoryUrl] :: SourceRepository -> String
[sourceRepositorySubdir] :: SourceRepository -> Maybe String
instance GHC.Show.Show Hpack.Config.Package
instance GHC.Classes.Eq Hpack.Config.Package
instance GHC.Show.Show Hpack.Config.SourceRepository
instance GHC.Classes.Eq Hpack.Config.SourceRepository
instance GHC.Show.Show Hpack.Config.Flag
instance GHC.Classes.Eq Hpack.Config.Flag
instance GHC.Generics.Generic Hpack.Config.PackageConfig
instance GHC.Show.Show Hpack.Config.PackageConfig
instance GHC.Classes.Eq Hpack.Config.PackageConfig
instance GHC.Generics.Generic Hpack.Config.FlagSection
instance GHC.Show.Show Hpack.Config.FlagSection
instance GHC.Classes.Eq Hpack.Config.FlagSection
instance GHC.Generics.Generic Hpack.Config.CommonOptions
instance GHC.Show.Show Hpack.Config.CommonOptions
instance GHC.Classes.Eq Hpack.Config.CommonOptions
instance GHC.Show.Show Hpack.Config.ConditionalSection
instance GHC.Classes.Eq Hpack.Config.ConditionalSection
instance GHC.Generics.Generic Hpack.Config.ThenElse
instance GHC.Show.Show Hpack.Config.ThenElse
instance GHC.Classes.Eq Hpack.Config.ThenElse
instance Data.Traversable.Traversable Hpack.Config.Section
instance Data.Foldable.Foldable Hpack.Config.Section
instance GHC.Base.Functor Hpack.Config.Section
instance GHC.Show.Show a => GHC.Show.Show (Hpack.Config.Section a)
instance GHC.Classes.Eq a => GHC.Classes.Eq (Hpack.Config.Section a)
instance GHC.Show.Show Hpack.Config.Conditional
instance GHC.Classes.Eq Hpack.Config.Conditional
instance GHC.Show.Show Hpack.Config.Executable
instance GHC.Classes.Eq Hpack.Config.Executable
instance GHC.Show.Show Hpack.Config.Library
instance GHC.Classes.Eq Hpack.Config.Library
instance GHC.Show.Show Hpack.Config.CustomSetup
instance GHC.Classes.Eq Hpack.Config.CustomSetup
instance GHC.Generics.Generic Hpack.Config.CustomSetupSection
instance GHC.Show.Show Hpack.Config.CustomSetupSection
instance GHC.Classes.Eq Hpack.Config.CustomSetupSection
instance GHC.Generics.Generic Hpack.Config.Dependency
instance GHC.Classes.Ord Hpack.Config.Dependency
instance GHC.Show.Show Hpack.Config.Dependency
instance GHC.Classes.Eq Hpack.Config.Dependency
instance GHC.Classes.Ord Hpack.Config.AddSource
instance GHC.Show.Show Hpack.Config.AddSource
instance GHC.Classes.Eq Hpack.Config.AddSource
instance GHC.Generics.Generic Hpack.Config.BuildType
instance GHC.Show.Show Hpack.Config.BuildType
instance GHC.Classes.Eq Hpack.Config.BuildType
instance GHC.Show.Show Hpack.Config.Empty
instance GHC.Classes.Eq Hpack.Config.Empty
instance GHC.Generics.Generic Hpack.Config.Condition
instance GHC.Show.Show Hpack.Config.Condition
instance GHC.Classes.Eq Hpack.Config.Condition
instance GHC.Generics.Generic Hpack.Config.ExecutableSection
instance GHC.Show.Show Hpack.Config.ExecutableSection
instance GHC.Classes.Eq Hpack.Config.ExecutableSection
instance GHC.Generics.Generic Hpack.Config.LibrarySection
instance GHC.Show.Show Hpack.Config.LibrarySection
instance GHC.Classes.Eq Hpack.Config.LibrarySection
instance GHC.Generics.Generic (Hpack.Config.CaptureUnknownFields a)
instance GHC.Show.Show a => GHC.Show.Show (Hpack.Config.CaptureUnknownFields a)
instance GHC.Classes.Eq a => GHC.Classes.Eq (Hpack.Config.CaptureUnknownFields a)
instance (Hpack.Config.HasFieldNames a, Data.Aeson.Types.FromJSON.FromJSON a) => Data.Aeson.Types.FromJSON.FromJSON (Hpack.Config.CaptureUnknownFields (Hpack.Config.Section a))
instance Data.Aeson.Types.FromJSON.FromJSON (Hpack.Config.CaptureUnknownFields Hpack.Config.CustomSetupSection)
instance Data.Aeson.Types.FromJSON.FromJSON (Hpack.Config.CaptureUnknownFields Hpack.Config.FlagSection)
instance Hpack.Config.HasFieldNames Hpack.Config.CustomSetupSection
instance Data.Aeson.Types.FromJSON.FromJSON Hpack.Config.CustomSetupSection
instance Hpack.Config.HasFieldNames Hpack.Config.LibrarySection
instance Data.Aeson.Types.FromJSON.FromJSON Hpack.Config.LibrarySection
instance Hpack.Config.HasFieldNames Hpack.Config.ExecutableSection
instance Data.Aeson.Types.FromJSON.FromJSON Hpack.Config.ExecutableSection
instance Hpack.Config.HasFieldNames Hpack.Config.CommonOptions
instance Data.Aeson.Types.FromJSON.FromJSON Hpack.Config.CommonOptions
instance Data.Aeson.Types.FromJSON.FromJSON Hpack.Config.ConditionalSection
instance Data.Aeson.Types.FromJSON.FromJSON Hpack.Config.Condition
instance Hpack.Config.HasFieldNames Hpack.Config.Condition
instance Data.Aeson.Types.FromJSON.FromJSON (Hpack.Config.CaptureUnknownFields Hpack.Config.ThenElse)
instance Hpack.Config.HasFieldNames Hpack.Config.ThenElse
instance Data.Aeson.Types.FromJSON.FromJSON Hpack.Config.ThenElse
instance Data.Aeson.Types.FromJSON.FromJSON Hpack.Config.Empty
instance Hpack.Config.HasFieldNames Hpack.Config.Empty
instance Data.Aeson.Types.FromJSON.FromJSON Hpack.Config.BuildType
instance Hpack.Config.HasFieldNames Hpack.Config.PackageConfig
instance Data.Aeson.Types.FromJSON.FromJSON Hpack.Config.PackageConfig
instance Data.String.IsString Hpack.Config.Dependency
instance Data.Aeson.Types.FromJSON.FromJSON Hpack.Config.Dependency
instance Hpack.Config.HasFieldNames a => Hpack.Config.HasFieldNames (Hpack.Config.Section a)
instance Hpack.Config.HasFieldNames Hpack.Config.FlagSection
instance Data.Aeson.Types.FromJSON.FromJSON Hpack.Config.FlagSection

module Hpack.Run
run :: Maybe FilePath -> FilePath -> IO ([String], FilePath, String)
renderPackage :: RenderSettings -> Alignment -> [String] -> [(String, [String])] -> Package -> String
data RenderSettings
RenderSettings :: Int -> Alignment -> CommaStyle -> RenderSettings
[renderSettingsIndentation] :: RenderSettings -> Int
[renderSettingsFieldAlignment] :: RenderSettings -> Alignment
[renderSettingsCommaStyle] :: RenderSettings -> CommaStyle
newtype Alignment
Alignment :: Int -> Alignment
data CommaStyle
LeadingCommas :: CommaStyle
TrailingCommas :: CommaStyle
defaultRenderSettings :: RenderSettings

module Hpack
hpack :: Maybe FilePath -> Bool -> IO ()
hpackResult :: Maybe FilePath -> IO Result
data Result
Result :: [String] -> String -> Status -> Result
[resultWarnings] :: Result -> [String]
[resultCabalFile] :: Result -> String
[resultStatus] :: Result -> Status
data Status
Generated :: Status
AlreadyGeneratedByNewerHpack :: Status
OutputUnchanged :: Status
version :: Version
main :: IO ()
