text-show-3.8.5: Efficient conversion of values into Text
Copyright(C) 2014-2017 Ryan Scott
LicenseBSD-style (see the file LICENSE)
MaintainerRyan Scott
StabilityProvisional
PortabilityGHC
Safe HaskellNone
LanguageHaskell2010

TextShow.Data.Integral

Description

TextShow instances and monomorphic functions for integral types.

Since: 2

Synopsis

Documentation

showbIntegralPrec :: Integral a => Int -> a -> Builder Source #

Convert an Integral type to a Builder with the given precedence.

Since: 2

showbIntAtBase :: (Integral a, TextShow a) => a -> (Int -> Char) -> a -> Builder Source #

Shows a non-negative Integral number using the base specified by the first argument, and the character representation specified by the second.

Since: 2

showbBin :: (Integral a, TextShow a) => a -> Builder Source #

Show non-negative Integral numbers in base 2.

Since: 2

showbHex :: (Integral a, TextShow a) => a -> Builder Source #

Show non-negative Integral numbers in base 16.

Since: 2

showbOct :: (Integral a, TextShow a) => a -> Builder Source #

Show non-negative Integral numbers in base 8.

Since: 2

Orphan instances

TextShow Int Source #

Since: 2

Instance details

Methods

showbPrec :: Int -> Int -> Builder Source #

showb :: Int -> Builder Source #

showbList :: [Int] -> Builder Source #

showtPrec :: Int -> Int -> Text Source #

showt :: Int -> Text Source #

showtList :: [Int] -> Text Source #

showtlPrec :: Int -> Int -> Text Source #

showtl :: Int -> Text Source #

showtlList :: [Int] -> Text Source #

TextShow Int8 Source #

Since: 2

Instance details

Methods

showbPrec :: Int -> Int8 -> Builder Source #

showb :: Int8 -> Builder Source #

showbList :: [Int8] -> Builder Source #

showtPrec :: Int -> Int8 -> Text Source #

showt :: Int8 -> Text Source #

showtList :: [Int8] -> Text Source #

showtlPrec :: Int -> Int8 -> Text Source #

showtl :: Int8 -> Text Source #

showtlList :: [Int8] -> Text Source #

TextShow Int16 Source #

Since: 2

Instance details

Methods

showbPrec :: Int -> Int16 -> Builder Source #

showb :: Int16 -> Builder Source #

showbList :: [Int16] -> Builder Source #

showtPrec :: Int -> Int16 -> Text Source #

showt :: Int16 -> Text Source #

showtList :: [Int16] -> Text Source #

showtlPrec :: Int -> Int16 -> Text Source #

showtl :: Int16 -> Text Source #

showtlList :: [Int16] -> Text Source #

TextShow Int32 Source #

Since: 2

Instance details

Methods

showbPrec :: Int -> Int32 -> Builder Source #

showb :: Int32 -> Builder Source #

showbList :: [Int32] -> Builder Source #

showtPrec :: Int -> Int32 -> Text Source #

showt :: Int32 -> Text Source #

showtList :: [Int32] -> Text Source #

showtlPrec :: Int -> Int32 -> Text Source #

showtl :: Int32 -> Text Source #

showtlList :: [Int32] -> Text Source #

TextShow Int64 Source #

Since: 2

Instance details

Methods

showbPrec :: Int -> Int64 -> Builder Source #

showb :: Int64 -> Builder Source #

showbList :: [Int64] -> Builder Source #

showtPrec :: Int -> Int64 -> Text Source #

showt :: Int64 -> Text Source #

showtList :: [Int64] -> Text Source #

showtlPrec :: Int -> Int64 -> Text Source #

showtl :: Int64 -> Text Source #

showtlList :: [Int64] -> Text Source #

TextShow Integer Source #

Since: 2

Instance details

Methods

showbPrec :: Int -> Integer -> Builder Source #

showb :: Integer -> Builder Source #

showbList :: [Integer] -> Builder Source #

showtPrec :: Int -> Integer -> Text Source #

showt :: Integer -> Text Source #

showtList :: [Integer] -> Text Source #

showtlPrec :: Int -> Integer -> Text Source #

showtl :: Integer -> Text Source #

showtlList :: [Integer] -> Text Source #

TextShow Word Source #

Since: 2

Instance details

Methods

showbPrec :: Int -> Word -> Builder Source #

showb :: Word -> Builder Source #

showbList :: [Word] -> Builder Source #

showtPrec :: Int -> Word -> Text Source #

showt :: Word -> Text Source #

showtList :: [Word] -> Text Source #

showtlPrec :: Int -> Word -> Text Source #

showtl :: Word -> Text Source #

showtlList :: [Word] -> Text Source #

TextShow Word8 Source #

Since: 2

Instance details

Methods

showbPrec :: Int -> Word8 -> Builder Source #

showb :: Word8 -> Builder Source #

showbList :: [Word8] -> Builder Source #

showtPrec :: Int -> Word8 -> Text Source #

showt :: Word8 -> Text Source #

showtList :: [Word8] -> Text Source #

showtlPrec :: Int -> Word8 -> Text Source #

showtl :: Word8 -> Text Source #

showtlList :: [Word8] -> Text Source #

TextShow Word16 Source #

Since: 2

Instance details

Methods

showbPrec :: Int -> Word16 -> Builder Source #

showb :: Word16 -> Builder Source #

showbList :: [Word16] -> Builder Source #

showtPrec :: Int -> Word16 -> Text Source #

showt :: Word16 -> Text Source #

showtList :: [Word16] -> Text Source #

showtlPrec :: Int -> Word16 -> Text Source #

showtl :: Word16 -> Text Source #

showtlList :: [Word16] -> Text Source #

TextShow Word32 Source #

Since: 2

Instance details

Methods

showbPrec :: Int -> Word32 -> Builder Source #

showb :: Word32 -> Builder Source #

showbList :: [Word32] -> Builder Source #

showtPrec :: Int -> Word32 -> Text Source #

showt :: Word32 -> Text Source #

showtList :: [Word32] -> Text Source #

showtlPrec :: Int -> Word32 -> Text Source #

showtl :: Word32 -> Text Source #

showtlList :: [Word32] -> Text Source #

TextShow Word64 Source #

Since: 2

Instance details

Methods

showbPrec :: Int -> Word64 -> Builder Source #

showb :: Word64 -> Builder Source #

showbList :: [Word64] -> Builder Source #

showtPrec :: Int -> Word64 -> Text Source #

showt :: Word64 -> Text Source #

showtList :: [Word64] -> Text Source #

showtlPrec :: Int -> Word64 -> Text Source #

showtl :: Word64 -> Text Source #

showtlList :: [Word64] -> Text Source #