Safe Haskell | None |
---|---|
Language | Haskell2010 |
- preparePackage :: FilePath -> FilePath -> PublishOptions -> IO (Either PackageError UploadedPackage)
- preparePackage' :: FilePath -> FilePath -> PublishOptions -> PrepareM UploadedPackage
- unsafePreparePackage :: FilePath -> FilePath -> PublishOptions -> IO UploadedPackage
- data PrepareM a
- runPrepareM :: PrepareM a -> IO (Either PackageError (a, [PackageWarning]))
- warn :: PackageWarning -> PrepareM ()
- userError :: UserError -> PrepareM a
- internalError :: InternalError -> PrepareM a
- otherError :: OtherError -> PrepareM a
- data PublishOptions = PublishOptions {}
- defaultPublishOptions :: PublishOptions
- getGitWorkingTreeStatus :: PrepareM TreeStatus
- checkCleanWorkingTree :: PublishOptions -> PrepareM ()
- getVersionFromGitTag :: PrepareM (Text, Version)
- getManifestRepositoryInfo :: PackageMeta -> PrepareM (GithubUser, GithubRepo)
- getModules :: [(PackageName, FilePath)] -> PrepareM ([Module], Map ModuleName PackageName)
- getResolvedDependencies :: FilePath -> [PackageName] -> PrepareM [(PackageName, (FilePath, Version))]
Documentation
preparePackage :: FilePath -> FilePath -> PublishOptions -> IO (Either PackageError UploadedPackage) Source #
Attempt to retrieve package metadata from the current directory. Returns a PackageError on failure
preparePackage' :: FilePath -> FilePath -> PublishOptions -> PrepareM UploadedPackage Source #
unsafePreparePackage :: FilePath -> FilePath -> PublishOptions -> IO UploadedPackage Source #
Attempt to retrieve package metadata from the current directory. Calls exitFailure if no package metadata could be retrieved.
runPrepareM :: PrepareM a -> IO (Either PackageError (a, [PackageWarning])) Source #
warn :: PackageWarning -> PrepareM () Source #
internalError :: InternalError -> PrepareM a Source #
otherError :: OtherError -> PrepareM a Source #
data PublishOptions Source #
PublishOptions | |
|
getGitWorkingTreeStatus :: PrepareM TreeStatus Source #
checkCleanWorkingTree :: PublishOptions -> PrepareM () Source #
getModules :: [(PackageName, FilePath)] -> PrepareM ([Module], Map ModuleName PackageName) Source #
getResolvedDependencies :: FilePath -> [PackageName] -> PrepareM [(PackageName, (FilePath, Version))] Source #