Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- v :: ToLogStr a => Fmt1 LogStr s a
- c :: IsString m => Fmt1 m s Char
- c7 :: Fmt1 LogStr s Char
- c8 :: Fmt1 LogStr s Char
- s :: (IsString m, Show a) => Fmt1 m s a
- s7 :: Fmt1 LogStr s String
- s8 :: Fmt1 LogStr s String
- e :: (IsString m, RealFloat a) => Int -> Fmt1 m s a
- f :: (IsString m, RealFloat a) => Int -> Fmt1 m s a
- g :: (IsString m, RealFloat a) => Int -> Fmt1 m s a
- d :: Fmt1 LogStr s Int
- hhd :: Fmt1 LogStr s Int8
- hd :: Fmt1 LogStr s Int16
- ld :: Fmt1 LogStr s Int32
- lld :: Fmt1 LogStr s Int64
- u :: Fmt1 LogStr s Word
- hhu :: Fmt1 LogStr s Word8
- hu :: Fmt1 LogStr s Word16
- lu :: Fmt1 LogStr s Word32
- llu :: Fmt1 LogStr s Word64
- x :: Fmt1 LogStr s Word
- hhx :: Fmt1 LogStr s Word8
- hx :: Fmt1 LogStr s Word16
- hx' :: Fmt1 LogStr s Word16
- lx :: Fmt1 LogStr s Word32
- lx' :: Fmt1 LogStr s Word32
- llx :: Fmt1 LogStr s Word64
- llx' :: Fmt1 LogStr s Word64
- b :: Fmt1 LogStr s ByteString
- b' :: Fmt1 LogStr s ByteString
- hhb :: Fmt1 LogStr s Word8
- hb :: Fmt1 LogStr s Word16
- hb' :: Fmt1 LogStr s Word16
- lb :: Fmt1 LogStr s Word32
- lb' :: Fmt1 LogStr s Word32
- llb :: Fmt1 LogStr s Word64
- llb' :: Fmt1 LogStr s Word64
Documentation
v :: ToLogStr a => Fmt1 LogStr s a #
Encode a loggable value.
Semantics are similar to printf
:
>>>
Text.Printf.printf "%v" 42 :: String
"42">>>
runLogFmt v 42
"42"
Character encodings
Ascii float encodings
e :: (IsString m, RealFloat a) => Int -> Fmt1 m s a #
Format a floating point number to a given number of digits of precision.
Semantics are similar to printf
:
>>>
Text.Printf.printf "%.5e" pi :: String
"3.14159e0">>>
runLogFmt (e 5) pi
"3.14159e0"
f :: (IsString m, RealFloat a) => Int -> Fmt1 m s a #
Format a floating point number to a given number of digits of precision.
Semantics are similar to printf
:
>>>
Text.Printf.printf "%.5f" maximal32 :: String
"340282330000000000000000000000000000000.00000">>>
runLogFmt (f 5) maximal32
"340282330000000000000000000000000000000.00000"
g :: (IsString m, RealFloat a) => Int -> Fmt1 m s a #
Format a floating point number to a given number of digits of precision.
Semantics are similar to printf
:
>>>
Text.Printf.printf "%.5g" maximal32 :: String
"3.40282e38">>>
runLogFmt (g 5) maximal32
"3.40282e38"
Decimal encodings
Decimal encoding of an Int8
using the ASCII digits.
e.g.
toLazyByteString (int8Dec 42) = "42" toLazyByteString (int8Dec (-1)) = "-1"
Hexadecimal encodings
Binary encodings
b :: Fmt1 LogStr s ByteString #
Format a lazy byte string.
b' :: Fmt1 LogStr s ByteString #