1
1
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:
Rob Rix 2015-12-30 09:01:49 -05:00
parent e55fa76b5a
commit 7209e396ec

View File

@ -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