Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- version :: Version
- hpack :: Verbose -> Options -> IO ()
- hpackResult :: Options -> IO Result
- printResult :: Verbose -> Result -> IO ()
- data Result = Result {}
- data Status
- defaultOptions :: Options
- setProgramName :: ProgramName -> Options -> Options
- setTarget :: FilePath -> Options -> Options
- setDecode :: (FilePath -> IO (Either String ([String], Value))) -> Options -> Options
- getOptions :: FilePath -> [String] -> IO (Maybe (Verbose, Options))
- data Verbose
- data Options = Options {}
- data Force
- data GenerateHashStrategy
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
).
Version
Running Hpack
Result | |
|
Options
setProgramName :: ProgramName -> Options -> Options Source #
data GenerateHashStrategy Source #
Instances
Eq GenerateHashStrategy Source # | |
Defined in Hpack (==) :: GenerateHashStrategy -> GenerateHashStrategy -> Bool # (/=) :: GenerateHashStrategy -> GenerateHashStrategy -> Bool # | |
Show GenerateHashStrategy Source # | |
Defined in Hpack showsPrec :: Int -> GenerateHashStrategy -> ShowS # show :: GenerateHashStrategy -> String # showList :: [GenerateHashStrategy] -> ShowS # |