Hoogle Search

Within LTS Haskell 24.50 (ghc-9.10.3)

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

  1. quantifyNums :: (Ord a, Real a, Floating b, Ord b) => SizeOpts -> [a] -> ([b], Char)

    MissingH Data.Quantity

    Like quantifyNum, but takes a list of numbers. The first number in the list will be evaluated for the suffix. The same suffix and scale will be used for the remaining items in the list. Please see renderNums for an example of how this works. It is invalid to use this function on an empty list.

  2. renderNum :: (Ord a, Real a) => SizeOpts -> Int -> a -> String

    MissingH Data.Quantity

    Render a number into a string, based on the given quantities. This is useful for displaying quantities in terms of bytes or in SI units. Give this function the SizeOpts for the desired output, and a precision (number of digits to the right of the decimal point), and you get a string output. Here are some examples:

    Data.Quantity> renderNum binaryOpts 0 1048576
    "1M"
    Data.Quantity> renderNum binaryOpts 2 10485760
    "10.00M"
    Data.Quantity> renderNum binaryOpts 3 1048576
    "1.000M"
    Data.Quantity> renderNum binaryOpts 3 1500000
    "1.431M"
    Data.Quantity> renderNum binaryOpts 2 (1500 ** 3)
    "3.14G"
    
    Data.Quantity> renderNum siOpts 2 1024
    "1.02k"
    Data.Quantity> renderNum siOpts 2 1048576
    "1.05M"
    Data.Quantity> renderNum siOpts 2 0.001
    "1.00m"
    Data.Quantity> renderNum siOpts 2 0.0001
    "100.00u"
    
    If you want more control over the output, see quantifyNum.

  3. renderNums :: (Ord a, Real a) => SizeOpts -> Int -> [a] -> [String]

    MissingH Data.Quantity

    Like renderNum, but operates on a list of numbers. The first number in the list will be evaluated for the suffix. The same suffix and scale will be used for the remaining items in the list. See renderNum for more examples. Also, unlike renderNum, the %f instead of %g printf format is used so that "scientific" notation is avoided in the output. Examples:

    *Data.Quantity> renderNums binaryOpts 3 [1500000, 10240, 104857600]
    ["1.431M","0.010M","100.000M"]
    *Data.Quantity> renderNums binaryOpts 3 [1500, 10240, 104857600]
    ["1.465K","10.000K","102400.000K"]
    

  4. portNumber :: InetServerOptions -> PortNumber

    MissingH Network.SocketServer

    No documentation available.

  5. KeyNumLock :: SpecialKey

    gloss Graphics.Gloss.Interface.IO.Game

    No documentation available.

  6. KeyNumLock :: SpecialKey

    gloss Graphics.Gloss.Interface.IO.Interact

    No documentation available.

  7. KeyNumLock :: SpecialKey

    gloss Graphics.Gloss.Interface.Pure.Game

    No documentation available.

  8. isNumString :: Bool -> Text -> Bool

    graphviz Data.GraphViz.Parsing

    Determine if this String represents a number. Boolean parameter determines if exponents are considered part of numbers for this.

  9. anumpostings :: Account -> Int

    hledger-lib Hledger.Data

    the number of postings to this account

  10. journalNumberAndTieTransactions :: Journal -> Journal

    hledger-lib Hledger.Data.Journal

    No documentation available.

Page 259 of many | Previous | Next