mirror of
https://github.com/github/semantic.git
synced 2024-12-01 00:33:59 +03:00
Add a HasDiff instance for string/diff pairs.
This commit is contained in:
parent
e55fa76b5a
commit
7209e396ec
@ -137,6 +137,9 @@ class HasDiff a where
|
||||
instance HasDiff (Diff String Info) where
|
||||
getDiff = id
|
||||
|
||||
instance HasDiff (String, Diff String Info) where
|
||||
getDiff = snd
|
||||
|
||||
class HasSplitDiff a where
|
||||
getSplitDiff :: a -> SplitDiff String Info
|
||||
setSplitDiff :: a -> SplitDiff String Info -> a
|
||||
|
Loading…
Reference in New Issue
Block a user