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.
-
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)
(
+% ) :: Show a => String -> a -> Stringpercent-format Text.PercentFormat Just an alias to % for use whenever Data.Ratio is in scope.
import Data.Ratio import Text.PercentFormat hiding ((%)) "..." +% 1 -% 2
(
-% ) :: Show a => String -> a -> Stringpercent-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).(
-%% ) :: (Show a, Show b) => String -> (a, b) -> Stringpercent-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.(
-%%% ) :: (Show a, Show b, Show c) => String -> (a, b, c) -> Stringpercent-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"
(
-%%%% ) :: (Show a, Show b, Show c, Show d) => String -> (a, b, c, d) -> Stringpercent-format Text.PercentFormat Formats four values into a string and finalizes it.
(
-%%%%% ) :: (Show a, Show b, Show c, Show d, Show e) => String -> (a, b, c, d, e) -> Stringpercent-format Text.PercentFormat Formats five values into a string and finalizes it.
-
percent-format Text.PercentFormat Formats six values into a stirng and finalizes it.
(
/% ) :: String -> Char -> Stringpercent-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% ???"
(
|% ) :: Moddable a => Pattern a -> Pattern a -> Pattern atidal Sound.Tidal.Boot No documentation available.