any -package:relude -package:streaming -package:text package:io-streams

any predicate stream returns True if any element in stream matches the predicate. any consumes as few elements as possible, ending consumption if an element satisfies the predicate.
ghci> is <- Streams.fromList [1, 2, 3]
ghci> Streams.any (> 0) is    -- Consumes one element
True
ghci> Streams.read is
Just 2
ghci> Streams.any even is     -- Only 3 remains
False
Thrown by throwIfProducesMoreThan when too many bytes were read from the original InputStream.
Thrown by throwIfConsumesMoreThan when too many bytes were sent to the produced OutputStream.