mirror of
https://github.com/github/semantic.git
synced 2024-11-29 02:44:36 +03:00
Derive a Show instance for SplitPatch.
This commit is contained in:
parent
0b1edbefb0
commit
b3e4c77038
@ -90,6 +90,7 @@ split diff (beforeBlob, afterBlob) = renderHtml
|
||||
|
||||
-- | A patch to only one side of a diff.
|
||||
data SplitPatch a = SplitInsert a | SplitDelete a | SplitReplace a
|
||||
deriving Show
|
||||
|
||||
-- | A diff with only one side’s annotations.
|
||||
type SplitDiff leaf annotation = Free (Annotated leaf annotation) (SplitPatch (Term leaf annotation))
|
||||
|
Loading…
Reference in New Issue
Block a user