Hoogle Search

Within LTS Haskell 24.25 (ghc-9.10.3)

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

  1. (-%-) :: forall (unitResult :: Rat) (unitLeft :: Rat) . KnownDivRat unitLeft unitResult => Time unitLeft -> Time unitResult -> (Ordering, Time unitResult)

    o-clock Time.Timestamp

    Compute the difference between two amounts of time. The result is returned in two components: the ordering (which input is larger) and the numeric difference (how much larger). Unlike -:-, does not throw ArithException.

    >>> sec 5 -%- sec 3
    (GT,2s)
    
    >>> sec 5 -%- sec 6
    (LT,1s)
    

  2. (+%) :: Show a => String -> a -> String

    percent-format Text.PercentFormat

    Just an alias to % for use whenever Data.Ratio is in scope.

    import Data.Ratio
    import Text.PercentFormat hiding ((%))
    "..." +% 1 -% 2
    

  3. (-%) :: Show a => String -> a -> String

    percent-format Text.PercentFormat

    Formats the last value into a string. This finalizes formatting, removing duplicate percent signs and replacing remaining format sequences with interrogation marks.

    > "Hello %s!" -% "World"
    "Hello World!"
    
    > "processor usage: %d%%" -% 67
    "processor usage: 67%"
    
    > "load avg: %.2f %.2f %.2f" % 0.666
    "load avg: %0.67 ? ?"
    
    Please use % if you intend to further format values (chaining).

  4. (-%%) :: (Show a, Show b) => String -> (a, b) -> String

    percent-format Text.PercentFormat

    Formats two values into a string and finalizes it: removing duplicate percent signs & replacing remaining format sequences with interrogation marks.

    > "%s %s!" -%% ("Hello","World")
    "Hello World!"
    
    > "load avg: %.2f %.2f %.2f" -%% (0.666,0.333)
    "load avg: %0.67 %0.33 ?"
    
    In general:
    s -%% (x,y) == s % x -% y
    
    Please use %% if you intend to further format values.

  5. (-%%%) :: (Show a, Show b, Show c) => String -> (a, b, c) -> String

    percent-format Text.PercentFormat

    Formats three values into a string and finalizes it.

    > "load avg: %.2f %.2f %.2f" -%%% (0.666,0.333,0.1)
    "load avg: %0.67 %0.33 %0.10"
    

  6. (-%%%%) :: (Show a, Show b, Show c, Show d) => String -> (a, b, c, d) -> String

    percent-format Text.PercentFormat

    Formats four values into a string and finalizes it.

  7. (-%%%%%) :: (Show a, Show b, Show c, Show d, Show e) => String -> (a, b, c, d, e) -> String

    percent-format Text.PercentFormat

    Formats five values into a string and finalizes it.

  8. (-%%%%%%) :: (Show a, Show b, Show c, Show d, Show e, Show f) => String -> (a, b, c, d, e, f) -> String

    percent-format Text.PercentFormat

    Formats six values into a stirng and finalizes it.

  9. (/%) :: String -> Char -> String

    percent-format Text.PercentFormat

    Replaces "%%" by "%". Any remaining occurrences of format strings are replaced by the given error character. Field width is respected when possible.

    > "100%% %i" /% '?'
    "100% ?"
    
    > "100%% %03i" /% '?'
    "100% ???"
    

  10. (|%) :: Moddable a => Pattern a -> Pattern a -> Pattern a

    tidal Sound.Tidal.Boot

    No documentation available.

Page 37 of many | Previous | Next