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.
fixedLengthDecimal :: Integral a => Int -> a -> TextBuildertext-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 ""
prefixedBinary :: FiniteBits a => a -> TextBuildertext-builder TextBuilder Same as binary, but with the "0b" prefix.
>>> prefixedBinary @Int8 0 "0b00000000"
prefixedHexadecimal :: (FiniteBits a, Integral a) => a -> TextBuildertext-builder TextBuilder Same as hexadecimal, but with the "0x" prefix.
>>> prefixedHexadecimal @Int8 0 "0x00"
prefixedOctal :: (FiniteBits a, Integral a) => a -> TextBuildertext-builder TextBuilder Same as octal, but with the "0o" prefix.
>>> prefixedOctal @Int8 0 "0o000"
isPrefixOf :: Eq ty => Array ty -> Array ty -> Boolbasement Basement.BoxedArray No documentation available.
isSuffixOf :: Eq ty => Array ty -> Array ty -> Boolbasement Basement.BoxedArray No documentation available.
isInfixOf :: String -> String -> Boolbasement Basement.String Check whether the first string is contains within the second string. TODO: implemented the naive way and thus terribly inefficient, reimplement properly
isPrefixOf :: String -> String -> Boolbasement Basement.String Check whether the first string is a prefix of the second string.
isSuffixOf :: String -> String -> Boolbasement Basement.String Check whether the first string is a suffix of the second string.
stripPrefix :: String -> String -> Maybe Stringbasement 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