mirror of
https://github.com/github/semantic.git
synced 2024-11-28 10:15:55 +03:00
Add a Show instance over BranchAlignment.
This commit is contained in:
parent
366dba33b3
commit
d42c071a08
@ -261,6 +261,9 @@ instance Arbitrary BranchElement where
|
||||
instance Arbitrary BranchAlignment where
|
||||
arbitrary = BranchAlignment <$> listOf1 arbitrary
|
||||
|
||||
instance Show BranchAlignment where
|
||||
show b = show $ toPrettyDiff $ branchElements b
|
||||
|
||||
instance Arbitrary (PrettyDiff [(String, Range)]) where
|
||||
arbitrary = toPrettyDiff <$> listOf1 arbitrary
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user