I'm using Data.Text and all I could find are find, which only takes a Char as predicate, and breakOn, which would allow me to do what I want but seems overkill. Surely there must be a better way?
I'd be interested in the answer to the same question with other string libraries as well (String, ByteString, etc.).
Just found it, the answer is isInfixOf.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With