mirror of
https://github.com/github/semantic.git
synced 2024-12-29 09:55:52 +03:00
🔥 the contortionist pointfree definition of info
.
This commit is contained in:
parent
3032a7893a
commit
f2eccbb275
@ -258,7 +258,7 @@ align :: Both (Source.Source Char) -> ConstructibleFree (Patch (Term String Info
|
||||
align sources = PrettyDiff sources . fmap (fmap (getRange &&& identity)) . alignDiff sources . deconstruct
|
||||
|
||||
info :: Int -> Int -> Info
|
||||
info = ((\ r -> Info r StringLiteral 0) .) . Range
|
||||
info start end = Info (Range start end) StringLiteral 0
|
||||
|
||||
prettyDiff :: Both (Source.Source Char) -> [Join These (ConstructibleFree (SplitPatch (Term String Info)) Info)] -> PrettyDiff (SplitDiff String Info)
|
||||
prettyDiff sources = PrettyDiff sources . fmap (fmap ((getRange &&& identity) . deconstruct))
|
||||
|
Loading…
Reference in New Issue
Block a user