mirror of
https://github.com/github/semantic.git
synced 2024-12-21 13:51:44 +03:00
Revert "Define a Crosswalk instance for Patch."
This reverts commit bdb9bccf6be16eacef8a7f745ef40e4a14a29397.
This commit is contained in:
parent
09e93cf899
commit
ddd4c552a8
@ -16,7 +16,6 @@ module Patch
|
||||
, patchType
|
||||
) where
|
||||
|
||||
import Data.Align
|
||||
import Data.Functor.Listable
|
||||
import Data.These
|
||||
import Prologue
|
||||
@ -91,8 +90,3 @@ instance Listable1 Patch where
|
||||
|
||||
instance Listable a => Listable (Patch a) where
|
||||
tiers = tiers1
|
||||
|
||||
instance Crosswalk Patch where
|
||||
crosswalk f (Replace a b) = alignWith (these Delete Insert Replace) (f a) (f b)
|
||||
crosswalk f (Insert b) = Insert <$> f b
|
||||
crosswalk f (Delete a) = Delete <$> f a
|
||||
|
Loading…
Reference in New Issue
Block a user