isprefixof package:streamly

Returns True if the first stream is the same as or a prefix of the second. A stream is a prefix of itself.
>>> Stream.isPrefixOf (Stream.fromList "hello") (Stream.fromList "hello" :: SerialT IO Char)
True