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.

  1. createModuleExWithFixities :: [(String, Fixity)] -> Located (HsModule GhcPs) -> ModuleEx

    hlint Language.Haskell.HLint

    No documentation available.

  2. fixities :: ParseFlags -> [FixityInfo]

    hlint Language.Haskell.HLint

    List of fixities to be aware of, defaults to those defined in base.

  3. parseFlagsAddFixities :: [FixityInfo] -> ParseFlags -> ParseFlags

    hlint Language.Haskell.HLint

    Given some fixities, add them to the existing fixities in ParseFlags.

  4. isInfixOf :: ByteString -> ByteString -> Bool

    rio RIO.ByteString

    Check whether one string is a substring of another.

  5. isPrefixOf :: ByteString -> ByteString -> Bool

    rio RIO.ByteString

    O(n) The isPrefixOf function takes two ByteStrings and returns True if the first is a prefix of the second.

  6. isSuffixOf :: ByteString -> ByteString -> Bool

    rio RIO.ByteString

    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
    
    However, the real implementation uses memcmp to compare the end of the string only, with no reverse required..

  7. stripPrefix :: ByteString -> ByteString -> Maybe ByteString

    rio RIO.ByteString

    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.

  8. stripSuffix :: ByteString -> ByteString -> Maybe ByteString

    rio RIO.ByteString

    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.

  9. isPrefixOf :: ByteString -> ByteString -> Bool

    rio RIO.ByteString.Lazy

    O(n) The isPrefixOf function takes two ByteStrings and returns True iff the first is a prefix of the second.

  10. isSuffixOf :: ByteString -> ByteString -> Bool

    rio RIO.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
    

Page 132 of many | Previous | Next