Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data PackageError
- data PackageWarning
- data UserError
- = PackageManifestNotFound
- | ResolutionsFileNotFound
- | CouldntDecodePackageManifest (ParseError ManifestError)
- | TagMustBeCheckedOut
- | AmbiguousVersions [Version]
- | BadRepositoryField RepositoryFieldError
- | NoLicenseSpecified
- | InvalidLicense
- | MissingDependencies (NonEmpty PackageName)
- | CompileError MultipleErrors
- | DirtyWorkingTree
- | ResolutionsFileError FilePath (ParseError PackageError)
- data InternalError = CouldntParseGitTagDate Text
- data OtherError
- data RepositoryFieldError
- data JSONSource
- printError :: PackageError -> IO ()
- printErrorToStdout :: PackageError -> IO ()
- renderError :: PackageError -> Box
- printWarnings :: [PackageWarning] -> IO ()
- renderWarnings :: [PackageWarning] -> Box
Documentation
data PackageError Source #
An error which meant that it was not possible to retrieve metadata for a package.
Instances
Show PackageError Source # | |
Defined in Language.PureScript.Publish.ErrorsWarnings showsPrec :: Int -> PackageError -> ShowS # show :: PackageError -> String # showList :: [PackageError] -> ShowS # | |
MonadError PackageError PrepareM Source # | |
Defined in Language.PureScript.Publish throwError :: PackageError -> PrepareM a # catchError :: PrepareM a -> (PackageError -> PrepareM a) -> PrepareM a # |
data PackageWarning Source #
NoResolvedVersion PackageName | |
UnacceptableVersion (PackageName, Text) | |
DirtyWorkingTree_Warn | |
LegacyResolutionsFormat FilePath |
Instances
Show PackageWarning Source # | |
Defined in Language.PureScript.Publish.ErrorsWarnings showsPrec :: Int -> PackageWarning -> ShowS # show :: PackageWarning -> String # showList :: [PackageWarning] -> ShowS # | |
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 # |
An error that should be fixed by the user.
data InternalError Source #
An error that probably indicates a bug in this module.
Instances
Show InternalError Source # | |
Defined in Language.PureScript.Publish.ErrorsWarnings showsPrec :: Int -> InternalError -> ShowS # show :: InternalError -> String # showList :: [InternalError] -> ShowS # |
data OtherError Source #
Instances
Show OtherError Source # | |
Defined in Language.PureScript.Publish.ErrorsWarnings showsPrec :: Int -> OtherError -> ShowS # show :: OtherError -> String # showList :: [OtherError] -> ShowS # |
data RepositoryFieldError Source #
Instances
Show RepositoryFieldError Source # | |
Defined in Language.PureScript.Publish.ErrorsWarnings showsPrec :: Int -> RepositoryFieldError -> ShowS # show :: RepositoryFieldError -> String # showList :: [RepositoryFieldError] -> ShowS # |
data JSONSource Source #
Instances
Show JSONSource Source # | |
Defined in Language.PureScript.Publish.ErrorsWarnings showsPrec :: Int -> JSONSource -> ShowS # show :: JSONSource -> String # showList :: [JSONSource] -> ShowS # |
printError :: PackageError -> IO () Source #
printErrorToStdout :: PackageError -> IO () Source #
renderError :: PackageError -> Box Source #
printWarnings :: [PackageWarning] -> IO () Source #
renderWarnings :: [PackageWarning] -> Box Source #