Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- 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 (Text, Version)
- getManifestRepositoryInfo :: PackageMeta -> PrepareM (GithubUser, GithubRepo)
- getModules :: PublishOptions -> [(PackageName, FilePath)] -> PrepareM ([Module], Map ModuleName PackageName)
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.
Instances
Monad PrepareM Source # | |
Functor PrepareM Source # | |
Applicative PrepareM Source # | |
MonadIO PrepareM Source # | |
Defined in Language.PureScript.Publish | |
MonadError PackageError PrepareM Source # | |
Defined in Language.PureScript.Publish throwError :: PackageError -> PrepareM a # catchError :: PrepareM a -> (PackageError -> PrepareM a) -> PrepareM a # | |
MonadWriter [PackageWarning] PrepareM Source # | |
Defined in Language.PureScript.Publish writer :: (a, [PackageWarning]) -> PrepareM a # tell :: [PackageWarning] -> PrepareM () # listen :: PrepareM a -> PrepareM (a, [PackageWarning]) # pass :: PrepareM (a, [PackageWarning] -> [PackageWarning]) -> PrepareM a # |
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 :: PublishOptions -> [(PackageName, FilePath)] -> PrepareM ([Module], Map ModuleName PackageName) Source #