Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
This module allows us to diff two ParseResult
s.
Synopsis
- data ParseResultDiff
- = Same
- | Different [RealSrcSpan]
- diffParseResult :: ParseResult -> ParseResult -> ParseResultDiff
Documentation
data ParseResultDiff Source #
Result of comparing two ParseResult
s.
Same | Two parse results are the same |
Different [RealSrcSpan] | Two parse results differ |
Instances
Monoid ParseResultDiff Source # | |
Defined in Ormolu.Diff.ParseResult mappend :: ParseResultDiff -> ParseResultDiff -> ParseResultDiff # mconcat :: [ParseResultDiff] -> ParseResultDiff # | |
Semigroup ParseResultDiff Source # | |
Defined in Ormolu.Diff.ParseResult (<>) :: ParseResultDiff -> ParseResultDiff -> ParseResultDiff # sconcat :: NonEmpty ParseResultDiff -> ParseResultDiff # stimes :: Integral b => b -> ParseResultDiff -> ParseResultDiff # | |
Show ParseResultDiff Source # | |
Defined in Ormolu.Diff.ParseResult showsPrec :: Int -> ParseResultDiff -> ShowS # show :: ParseResultDiff -> String # showList :: [ParseResultDiff] -> ShowS # |
diffParseResult :: ParseResult -> ParseResult -> ParseResultDiff Source #
Return Diff
of two ParseResult
s.