Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- showBin :: (PrintfArg t, FiniteBits t) => t -> String
- showDec :: (PrintfArg t, FiniteBits t) => t -> String
- showHex :: (PrintfArg t, FiniteBits t) => t -> String
- formatHex :: PrintfArg t => t -> String
- showBinGroups :: (PrintfArg b, Num b, FiniteBits b) => Int -> b -> String
- platformSizeOfInt :: Int
- showHex8 :: Int -> String
- showHex16 :: Int -> String
- showHex32 :: Int -> String
Show in base
showBin :: (PrintfArg t, FiniteBits t) => t -> String Source #
Format number using binary notation with leading 0b, padded according to its bit size
showHex :: (PrintfArg t, FiniteBits t) => t -> String Source #
Format number using hexadecimal notation with leading 0x, padded according to its bit size
formatHex :: PrintfArg t => t -> String Source #
Format number using hexadecimal notation with leading 0x
Show binary groups
showBinGroups :: (PrintfArg b, Num b, FiniteBits b) => Int -> b -> String Source #
Print number in binary with bits grouped by groupSize
e.g. with `groupSize = 4` we would get `0000 1010 0000 0101`
Size of Int
platformSizeOfInt :: Int Source #
Size of Int
at the current platform