1
1
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:
Rob Rix 2016-05-25 10:42:44 -04:00
parent 366dba33b3
commit d42c071a08

View File

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