- newtype ErrorMessage = ErrorMessage {}
- type ErrorMessageOr = Either ErrorMessage
- errorMessage :: String -> Doc -> ErrorMessage
- errorMessageText :: String -> String -> ErrorMessage
- errorMessageTextFromMultilineString :: String -> String -> ErrorMessage
- leftErrorMessage :: String -> Doc -> Either ErrorMessage a
- leftErrorMessageText :: String -> String -> Either ErrorMessage a
- leftErrorMessageTextFromMultilineString :: String -> String -> Either ErrorMessage a
- formatErrorMessage :: ErrorMessage -> Doc
- formatMessageWithHeading :: String -> Doc -> Doc
- gatherResultsOrErrors :: [Either e a] -> Either [e] [a]
- gatherResultsOrError :: Monoid e => [Either e a] -> Either e [a]
The ErrorMessage Type
newtype ErrorMessage Source
Instances for ErrorMessage
Instances for Doc
Applicative Instances
Creation of Error Messages
errorMessage :: String -> Doc -> ErrorMessageSource
errorMessageText :: String -> String -> ErrorMessageSource
leftErrorMessage :: String -> Doc -> Either ErrorMessage aSource
leftErrorMessageText :: String -> String -> Either ErrorMessage aSource
Formatting of Error Messages
formatMessageWithHeading :: String -> Doc -> DocSource
Gathering Results with Errors
gatherResultsOrErrors :: [Either e a] -> Either [e] [a]Source
gatherResultsOrError :: Monoid e => [Either e a] -> Either e [a]Source