Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- newtype ErrorTree = ErrorTree {
- unErrorTree :: Tree Error
- singleError :: Error -> ErrorTree
- errorTree :: Error -> NonEmpty Error -> ErrorTree
- errorTreeContext :: Text -> ErrorTree -> ErrorTree
- nestedError :: Error -> ErrorTree -> ErrorTree
- nestedMultiError :: Error -> NonEmpty ErrorTree -> ErrorTree
- prettyErrorTree :: ErrorTree -> Text
- prettyErrorTrees :: NonEmpty ErrorTree -> Text
Documentation
errorTreeContext :: Text -> ErrorTree -> ErrorTree Source #
Attach more context to the root Error
of the ErrorTree
, via errorContext
.
nestedError :: Error -> ErrorTree -> ErrorTree Source #
Nest the given Error
around the ErrorTree
top level error | -- nestedError | -- error 1 | -- error 2
prettyErrorTree :: ErrorTree -> Text Source #