Hoogle Search
Within LTS Haskell 24.58 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
isInfixOf :: (IsSequence seq, Eq (Element seq)) => seq -> seq -> Boolmono-traversable Data.Sequences isInfixOf takes two sequences and returns true if the first sequence is contained, wholly and intact, anywhere within the second.
isPrefixOf :: (IsSequence seq, Eq (Element seq)) => seq -> seq -> Boolmono-traversable Data.Sequences isPrefixOf takes two sequences and returns True if the first sequence is a prefix of the second.
isSuffixOf :: (IsSequence seq, Eq (Element seq)) => seq -> seq -> Boolmono-traversable Data.Sequences isSuffixOf takes two sequences and returns True if the first sequence is a suffix of the second.
stripPrefix :: (IsSequence seq, Eq (Element seq)) => seq -> seq -> Maybe seqmono-traversable Data.Sequences stripPrefix drops the given prefix from a sequence. It returns Nothing if the sequence did not start with the prefix given, or Just the sequence after the prefix, if it does.
> stripPrefix "foo" "foobar" Just "bar" > stripPrefix "abc" "foobar" Nothing
stripPrefixLazyBS :: ByteString -> ByteString -> Maybe ByteStringmono-traversable Data.Sequences No documentation available.
stripPrefixStrictBS :: ByteString -> ByteString -> Maybe ByteStringmono-traversable Data.Sequences No documentation available.
stripSuffix :: (IsSequence seq, Eq (Element seq)) => seq -> seq -> Maybe seqmono-traversable Data.Sequences stripSuffix drops the given suffix from a sequence. It returns Nothing if the sequence did not end with the suffix given, or Just the sequence before the suffix, if it does.
> stripSuffix "bar" "foobar" Just "foo" > stripSuffix "abc" "foobar" Nothing
stripSuffixLazyBS :: ByteString -> ByteString -> Maybe ByteStringmono-traversable Data.Sequences No documentation available.
stripSuffixStrictBS :: ByteString -> ByteString -> Maybe ByteStringmono-traversable Data.Sequences No documentation available.
-
network-bsd Network.BSD UNIX-domain