fix: restrict the IteratorLoop instance on DropWhile, which was accidentally more general (#8703)

This PR corrects the `IteratorLoop` instance in `DropWhile`, which
previously triggered for arbitrary iterator types.
This commit is contained in:
Paul Reichert 2025-06-11 09:35:46 +02:00 committed by GitHub
parent 44e36dec6f
commit cf8315ed96
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -278,7 +278,7 @@ instance DropWhile.instIteratorCollectPartial [Monad m] [Monad n] [Iterator α m
.defaultImplementation
instance DropWhile.instIteratorLoop [Monad m] [Monad n] [Iterator α m β] :
IteratorLoop α m n :=
IteratorLoop (DropWhile α m β P) m n :=
.defaultImplementation
instance DropWhile.instIteratorForPartial [Monad m] [Monad n] [Iterator α m β]