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:
parent
44e36dec6f
commit
cf8315ed96
1 changed files with 1 additions and 1 deletions
|
|
@ -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 β]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue