Safe Haskell | None |
---|---|
Language | Haskell98 |
- preparePackage :: PublishOptions -> IO (Either PackageError UploadedPackage)
- preparePackage' :: PublishOptions -> PrepareM UploadedPackage
- unsafePreparePackage :: 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 (String, Version)
- getBowerRepositoryInfo :: PackageMeta -> PrepareM (GithubUser, GithubRepo)
- getModulesAndBookmarks :: PrepareM ([Bookmark], [Module])
- getResolvedDependencies :: [PackageName] -> PrepareM [(PackageName, Version)]
Documentation
preparePackage :: PublishOptions -> IO (Either PackageError UploadedPackage) Source
Attempt to retrieve package metadata from the current directory. Returns a PackageError on failure
unsafePreparePackage :: 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
getModulesAndBookmarks :: PrepareM ([Bookmark], [Module]) Source
getResolvedDependencies :: [PackageName] -> PrepareM [(PackageName, Version)] Source