| License | BSD3 |
|---|---|
| Maintainer | tbidne@gmail.com |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Git.Stale.Types.ResultsWithErrs
Description
Provides a ResultsWithErrs type that wraps Results along with
a list of errors.
Synopsis
- newtype ErrDisp = ErrDisp (Text, Int)
- data ResultsWithErrs = ResultsWithErrs {}
- newtype ResultsWithErrsDisp = ResultsWithErrsDisp (ErrDisp, ResultsDisp)
- toResultsErrDisp :: Text -> ResultsWithErrs -> ResultsWithErrsDisp
- toResultsWithErrs :: [ErrOr AnyBranch] -> ResultsWithErrs
Documentation
Newtype wrapper for errors over (display string, num branches).
data ResultsWithErrs Source #
Constructors
| ResultsWithErrs | |
Instances
| Show ResultsWithErrs Source # | |
Defined in Git.Stale.Types.ResultsWithErrs Methods showsPrec :: Int -> ResultsWithErrs -> ShowS # show :: ResultsWithErrs -> String # showList :: [ResultsWithErrs] -> ShowS # | |
newtype ResultsWithErrsDisp Source #
Newtype wrapper over (ErrDisp, ResultsDisp).
Constructors
| ResultsWithErrsDisp (ErrDisp, ResultsDisp) |
toResultsErrDisp :: Text -> ResultsWithErrs -> ResultsWithErrsDisp Source #
Transforms the ResultsWithErrs into a ResultsWithErrsDisp for display
purposes. Strips out the prefix from the branches, if it exists.
toResultsWithErrs :: [ErrOr AnyBranch] -> ResultsWithErrs Source #
Maps [ErrOr AnyBranch] to ResultsWithErrs.