Hoogle Search
Within LTS Haskell 24.6 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
stripSuffix :: ByteString -> ByteString -> Maybe ByteStringbytestring Data.ByteString.Char8 O(n) The stripSuffix function takes two ByteStrings and returns Just the remainder of the second iff the first is its suffix, and otherwise Nothing.
isPrefixOf :: ByteString -> ByteString -> Boolbytestring Data.ByteString.Lazy O(n) The isPrefixOf function takes two ByteStrings and returns True iff the first is a prefix of the second.
isSuffixOf :: ByteString -> ByteString -> Boolbytestring Data.ByteString.Lazy O(n) The isSuffixOf function takes two ByteStrings and returns True iff the first is a suffix of the second. The following holds:
isSuffixOf x y == reverse x `isPrefixOf` reverse y
stripPrefix :: ByteString -> ByteString -> Maybe ByteStringbytestring Data.ByteString.Lazy O(n) The stripPrefix function takes two ByteStrings and returns Just the remainder of the second iff the first is its prefix, and otherwise Nothing.
stripSuffix :: ByteString -> ByteString -> Maybe ByteStringbytestring Data.ByteString.Lazy O(n) The stripSuffix function takes two ByteStrings and returns Just the remainder of the second iff the first is its suffix, and otherwise Nothing.
isPrefixOf :: ByteString -> ByteString -> Boolbytestring Data.ByteString.Lazy.Char8 O(n) The isPrefixOf function takes two ByteStrings and returns True iff the first is a prefix of the second.
isSuffixOf :: ByteString -> ByteString -> Boolbytestring Data.ByteString.Lazy.Char8 O(n) The isSuffixOf function takes two ByteStrings and returns True iff the first is a suffix of the second. The following holds:
isSuffixOf x y == reverse x `isPrefixOf` reverse y
stripPrefix :: ByteString -> ByteString -> Maybe ByteStringbytestring Data.ByteString.Lazy.Char8 O(n) The stripPrefix function takes two ByteStrings and returns Just the remainder of the second iff the first is its prefix, and otherwise Nothing.
stripSuffix :: ByteString -> ByteString -> Maybe ByteStringbytestring Data.ByteString.Lazy.Char8 O(n) The stripSuffix function takes two ByteStrings and returns Just the remainder of the second iff the first is its suffix, and otherwise Nothing.
isInfixOf :: ShortByteString -> ShortByteString -> Boolbytestring Data.ByteString.Short Check whether one string is a substring of another.