License | Apache-2.0 |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- type UnpackedCabalVersion = CabalVersion' (CommitId, CabalSourceDir)
- type ResolvedCabalVersion = CabalVersion' CommitId
- type CabalVersion = CabalVersion' ()
- unpackedToResolvedCabalVersion :: UnpackedCabalVersion -> ResolvedCabalVersion
- data CabalVersion' a
- = CabalHEAD a
- | CabalVersion { }
- newtype CommitId = CommitId {
- unCommitId :: String
- showUnpackedCabalVersion :: UnpackedCabalVersion -> String
- showResolvedCabalVersion :: ResolvedCabalVersion -> String
- showCabalVersion :: CabalVersion -> String
- data CabalPatchDescription = CabalPatchDescription {
- cpdVersions :: [Version]
- cpdUnpackVariant :: UnpackCabalVariant
- cpdPatchFn :: FilePath -> IO ()
- nopCabalPatchDescription :: CabalPatchDescription
- patchyCabalVersions :: [CabalPatchDescription]
- unpackPatchedCabal :: Env => Version -> FilePath -> IO CabalSourceDir
- unpackCabalV1 :: Env => UnpackedCabalVersion -> FilePath -> IO CabalSourceDir
- unpackCabal :: Env => CabalVersion -> FilePath -> IO UnpackedCabalVersion
- data UnpackCabalVariant
- newtype CabalSourceDir = CabalSourceDir {}
- unpackCabalHackage :: (Verbose, Progs) => Version -> FilePath -> UnpackCabalVariant -> IO CabalSourceDir
- unpackCabalHEAD :: Env => FilePath -> IO (CommitId, CabalSourceDir)
- replaceVersionDecl :: (Version -> Maybe Version) -> String -> Maybe String
- resolveCabalVersion :: Verbose => CabalVersion -> IO ResolvedCabalVersion
- findCabalFile :: FilePath -> IO (Maybe FilePath)
- complainIfNoCabalFile :: FilePath -> Maybe FilePath -> IO FilePath
- bultinCabalVersion :: Version
- readSetupConfigHeader :: FilePath -> IO (Maybe UnitHeader)
- parseSetupHeader :: ByteString -> Maybe UnitHeader
- getCabalVerbosity :: Verbose => Verbosity
Documentation
type CabalVersion = CabalVersion' () Source #
data CabalVersion' a Source #
Cabal library version we're compiling the helper exe against.
Instances
Functor CabalVersion' Source # | |
Defined in CabalHelper.Compiletime.Cabal fmap :: (a -> b) -> CabalVersion' a -> CabalVersion' b # (<$) :: a -> CabalVersion' b -> CabalVersion' a # | |
Eq a => Eq (CabalVersion' a) Source # | |
Defined in CabalHelper.Compiletime.Cabal (==) :: CabalVersion' a -> CabalVersion' a -> Bool # (/=) :: CabalVersion' a -> CabalVersion' a -> Bool # | |
Ord a => Ord (CabalVersion' a) Source # | |
Defined in CabalHelper.Compiletime.Cabal compare :: CabalVersion' a -> CabalVersion' a -> Ordering # (<) :: CabalVersion' a -> CabalVersion' a -> Bool # (<=) :: CabalVersion' a -> CabalVersion' a -> Bool # (>) :: CabalVersion' a -> CabalVersion' a -> Bool # (>=) :: CabalVersion' a -> CabalVersion' a -> Bool # max :: CabalVersion' a -> CabalVersion' a -> CabalVersion' a # min :: CabalVersion' a -> CabalVersion' a -> CabalVersion' a # |
data CabalPatchDescription Source #
CabalPatchDescription | |
|
unpackPatchedCabal :: Env => Version -> FilePath -> IO CabalSourceDir Source #
unpackCabalV1 :: Env => UnpackedCabalVersion -> FilePath -> IO CabalSourceDir Source #
unpackCabal :: Env => CabalVersion -> FilePath -> IO UnpackedCabalVersion Source #
newtype CabalSourceDir Source #
unpackCabalHackage :: (Verbose, Progs) => Version -> FilePath -> UnpackCabalVariant -> IO CabalSourceDir Source #
unpackCabalHEAD :: Env => FilePath -> IO (CommitId, CabalSourceDir) Source #
replaceVersionDecl :: (Version -> Maybe Version) -> String -> Maybe String Source #
Replace the version declaration in a cabal file
readSetupConfigHeader :: FilePath -> IO (Maybe UnitHeader) Source #
getCabalVerbosity :: Verbose => Verbosity Source #