Skip to content

Commit 4d688b8

Browse files
Making Seq instances more backwards compatible.
1 parent f600fc4 commit 4d688b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Data/MonoTraversable/Keys.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ instance MonoFoldableWithKey (Seq a) where
815815
{-# INLINE ofoldrWithKey #-}
816816
{-# INLINE ofoldlWithKey #-}
817817

818-
ofoldMapWithKey = Seq.foldMapWithIndex
818+
ofoldMapWithKey = foldMapWithKey
819819

820820
ofoldrWithKey = Seq.foldrWithIndex
821821

@@ -1957,7 +1957,7 @@ instance Functor m => MonoAdjustable (S.RWST r w s m a) where
19571957
instance MonoAdjustable (Seq a) where
19581958
{-# INLINE oadjust #-}
19591959

1960-
oadjust = Seq.adjust'
1960+
oadjust = adjust
19611961

19621962

19631963
-- Cannot instantiate because the adjust might violate the internal structure

0 commit comments

Comments
 (0)