Hoogle Search

Within LTS Haskell 24.35 (ghc-9.10.3)

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

  1. formatNumber :: Text -> Int -> Text

    typst Typst.Methods

    No documentation available.

  2. format :: FormatType r => Format -> r

    vformat Text.Format

    Format a variable number of arguments with Python-style format string

    >>> format "{:s}, {:d}, {:.4f}" "hello" 123 pi
    "hello, 123, 3.1416"
    
    >>> format "{1:s}, {0:d}, {2:.4f}" 123 "hello" pi
    "hello, 123, 3.1416"
    
    >>> format "{:s} {:d} {pi:.4f}" "hello" 123 ("pi" := pi)
    "hello, 123, 3.1416"
    
    See Format to learn more about format string syntax. See FormatArg to learn how to derive FormatArg for your own data types.

  3. format1 :: FormatArg a => Format1 -> a -> String

    vformat Text.Format

    A variant of format, it takes only one positional argument

    >>> :set -XDeriveGeneric
    
    >>> import GHC.Generics
    
    >>> data Triple = Triple String Int Double deriving Generic
    
    >>> instance FormatArg Triple
    
    >>> format "{0!0:s} {0!1:d} {0!2:.4f}" $ Triple "hello" 123 pi
    "hello, 123, 3.1416"
    
    >>> format1 "{0:s} {1:d} {2:.4f}" $ Triple "hello" 123 pi
    "hello, 123, 3.1416"
    

  4. formatArg :: FormatArg a => a -> Formatter

    vformat Text.Format

    No documentation available.

  5. formatChar :: Char -> Formatter

    vformat Text.Format

    Formatter for Char values

  6. formatInt :: (Integral a, Bounded a) => a -> Formatter

    vformat Text.Format

    Formatter for Int values

  7. formatInteger :: Integer -> Formatter

    vformat Text.Format

    Formatter for Integer values

  8. formatRealFloat :: RealFloat a => a -> Formatter

    vformat Text.Format

    Formatter for RealFloat values

  9. formatString :: String -> Formatter

    vformat Text.Format

    Formatter for string values

  10. formatWord :: (Integral a, Bounded a) => a -> Formatter

    vformat Text.Format

    Formatter for Word values

Page 146 of many | Previous | Next