Hoogle Search

Within LTS Haskell 24.69 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. ensureSuffix :: (Eq (Element seq), IsSequence seq) => seq -> seq -> seq

    mono-traversable Data.Sequences

    Append a suffix to a sequence, unless it already has that suffix.

    > ensureSuffix "bar" "foobar"
    "foobar"
    > ensureSuffix "abc" "foobar"
    "foobarabc"
    

  2. isInfixOf :: (IsSequence seq, Eq (Element seq)) => seq -> seq -> Bool

    mono-traversable Data.Sequences

    isInfixOf takes two sequences and returns true if the first sequence is contained, wholly and intact, anywhere within the second.

  3. isPrefixOf :: (IsSequence seq, Eq (Element seq)) => seq -> seq -> Bool

    mono-traversable Data.Sequences

    isPrefixOf takes two sequences and returns True if the first sequence is a prefix of the second.

  4. isSuffixOf :: (IsSequence seq, Eq (Element seq)) => seq -> seq -> Bool

    mono-traversable Data.Sequences

    isSuffixOf takes two sequences and returns True if the first sequence is a suffix of the second.

  5. stripPrefix :: (IsSequence seq, Eq (Element seq)) => seq -> seq -> Maybe seq

    mono-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
    

  6. stripPrefixLazyBS :: ByteString -> ByteString -> Maybe ByteString

    mono-traversable Data.Sequences

    No documentation available.

  7. stripPrefixStrictBS :: ByteString -> ByteString -> Maybe ByteString

    mono-traversable Data.Sequences

    No documentation available.

  8. stripSuffix :: (IsSequence seq, Eq (Element seq)) => seq -> seq -> Maybe seq

    mono-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
    

  9. stripSuffixLazyBS :: ByteString -> ByteString -> Maybe ByteString

    mono-traversable Data.Sequences

    No documentation available.

  10. stripSuffixStrictBS :: ByteString -> ByteString -> Maybe ByteString

    mono-traversable Data.Sequences

    No documentation available.

Page 129 of many | Previous | Next