text-show-3.4.1.1: Efficient conversion of values into Text

Copyright(C) 2014-2016 Ryan Scott
LicenseBSD-style (see the file LICENSE)
MaintainerRyan Scott
StabilityProvisional
PortabilityGHC
Safe HaskellNone
LanguageHaskell2010

TextShow.Data.Integral

Contents

Description

Monomorphic TextShow functions for integral types.

Since: 2

Synopsis

Documentation

showbIntPrec :: Int -> Int -> Builder Source #

Convert an Int to a Builder with the given precedence.

Since: 2

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

Convert an Int8 to a Builder with the given precedence.

Since: 2

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

Convert an Int16 to a Builder with the given precedence.

Since: 2

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

Convert an Int32 to a Builder with the given precedence.

Since: 2

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

Convert an Int64 to a Builder with the given precedence.

Since: 2

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

Convert an Integer to a Builder with the given precedence.

Since: 2

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

showbWord :: Word -> Builder Source #

Convert a Word to a Builder with the given precedence.

Since: 2

showbWord8 :: Word8 -> Builder Source #

Convert a Word8 to a Builder with the given precedence.

Since: 2

showbWord16 :: Word16 -> Builder Source #

Convert a Word16 to a Builder with the given precedence.

Since: 2

showbWord32 :: Word32 -> Builder Source #

Convert a Word32 to a Builder with the given precedence.

Since: 2

showbWord64 :: Word64 -> Builder Source #

Convert a Word64 to a Builder with the given precedence.

Since: 2

Orphan instances

TextShow Int Source # 

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 # 

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 # 
TextShow Int32 Source # 
TextShow Int64 Source # 
TextShow Integer Source # 
TextShow Word Source # 

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 # 
TextShow Word16 Source # 
TextShow Word32 Source # 
TextShow Word64 Source #