bits-show-0.0.0.0: Showing data as strings of 0 and 1
Safe HaskellSafe-Inferred
LanguageGHC2021

Bits.Show

Synopsis

Documentation

showFiniteBits :: (FiniteBits bits, IsString string) => bits -> string Source #

Examples:

showFiniteBits (5 :: Int8) = "00000101"
showFiniteBits ((-5) :: Int8) = "11111011"

showBit :: Bool -> Char Source #

{ True -> '1'; False -> '0' }