Safe Haskell | None |
---|---|
Language | Haskell2010 |
Ormolu.Diff
Description
Diffing GHC ASTs modulo span positions.
Synopsis
- data Diff
- diffParseResult :: ParseResult -> ParseResult -> Diff
- diffText :: Text -> Text -> FilePath -> Maybe (RealSrcLoc, Text, Text)
Documentation
Result of comparing two ParseResult
s.
diffParseResult :: ParseResult -> ParseResult -> Diff Source #
Return Diff
of two ParseResult
s.
Arguments
:: Text | Text before |
-> Text | Text after |
-> FilePath | Path to use to construct |
-> Maybe (RealSrcLoc, Text, Text) |
Diff two texts and return the location they start to differ, alongside with excerpts around that location.