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. fixedLengthDecimal :: Integral a => Int -> a -> TextBuilder

    text-builder TextBuilder

    Fixed-length decimal without sign. Padded with zeros or trimmed depending on whether it's shorter or longer than specified.

    >>> fixedLengthDecimal 5 123
    "00123"
    
    >>> fixedLengthDecimal 5 123456
    "23456"
    
    >>> fixedLengthDecimal 5 (-123456)
    "23456"
    
    >>> fixedLengthDecimal 7 (-123456)
    "0123456"
    
    >>> fixedLengthDecimal 0 123
    ""
    
    >>> fixedLengthDecimal (-2) 123
    ""
    

  2. prefixedBinary :: FiniteBits a => a -> TextBuilder

    text-builder TextBuilder

    Same as binary, but with the "0b" prefix.

    >>> prefixedBinary @Int8 0
    "0b00000000"
    

  3. prefixedHexadecimal :: (FiniteBits a, Integral a) => a -> TextBuilder

    text-builder TextBuilder

    Same as hexadecimal, but with the "0x" prefix.

    >>> prefixedHexadecimal @Int8 0
    "0x00"
    

  4. prefixedOctal :: (FiniteBits a, Integral a) => a -> TextBuilder

    text-builder TextBuilder

    Same as octal, but with the "0o" prefix.

    >>> prefixedOctal @Int8 0
    "0o000"
    

  5. isPrefixOf :: Eq ty => Array ty -> Array ty -> Bool

    basement Basement.BoxedArray

    No documentation available.

  6. isSuffixOf :: Eq ty => Array ty -> Array ty -> Bool

    basement Basement.BoxedArray

    No documentation available.

  7. isInfixOf :: String -> String -> Bool

    basement Basement.String

    Check whether the first string is contains within the second string. TODO: implemented the naive way and thus terribly inefficient, reimplement properly

  8. isPrefixOf :: String -> String -> Bool

    basement Basement.String

    Check whether the first string is a prefix of the second string.

  9. isSuffixOf :: String -> String -> Bool

    basement Basement.String

    Check whether the first string is a suffix of the second string.

  10. stripPrefix :: String -> String -> Maybe String

    basement Basement.String

    Try to strip a prefix from the start of a String. If the prefix is not starting the string, then Nothing is returned, otherwise the striped string is returned

Page 179 of many | Previous | Next