Skip to content

Commit 29815c0

Browse files
committed
Dedup traverse instance
1 parent 579ca70 commit 29815c0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Data/Patch/MapWithMove.hs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,7 @@ instance Foldable (NodeInfo k) where
244244
foldMap = foldMapDefault
245245

246246
instance Traversable (NodeInfo k) where
247-
traverse = _NodeInfo . traverseNodeInfo
248-
where
249-
traverseNodeInfo
250-
:: Traversal (PM.NodeInfo k (Proxy a)) (PM.NodeInfo k (Proxy b)) a b
251-
traverseNodeInfo = PM.bitraverseNodeInfo pure (\ ~Proxy -> pure Proxy)
247+
traverse = bitraverseNodeInfo pure
252248

253249
bitraverseNodeInfo
254250
:: Applicative f

0 commit comments

Comments
 (0)