bytestring-conversion-0.3.2: Type-classes to convert values to and from ByteString.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.ByteString.Conversion.To

Synopsis

Documentation

class ToByteString a where Source #

Methods

builder :: a -> Builder Source #

Instances

Instances details
ToByteString Int16 Source # 
Instance details

Defined in Data.ByteString.Conversion.To

ToByteString Int32 Source # 
Instance details

Defined in Data.ByteString.Conversion.To

ToByteString Int64 Source # 
Instance details

Defined in Data.ByteString.Conversion.To

ToByteString Int8 Source # 
Instance details

Defined in Data.ByteString.Conversion.To

Methods

builder :: Int8 -> Builder Source #

ToByteString Word16 Source # 
Instance details

Defined in Data.ByteString.Conversion.To

ToByteString Word32 Source # 
Instance details

Defined in Data.ByteString.Conversion.To

ToByteString Word64 Source # 
Instance details

Defined in Data.ByteString.Conversion.To

ToByteString Word8 Source # 
Instance details

Defined in Data.ByteString.Conversion.To

ToByteString Builder Source # 
Instance details

Defined in Data.ByteString.Conversion.To

ToByteString ByteString Source # 
Instance details

Defined in Data.ByteString.Conversion.To

ToByteString ByteString Source # 
Instance details

Defined in Data.ByteString.Conversion.To

ToByteString Text Source # 
Instance details

Defined in Data.ByteString.Conversion.To

Methods

builder :: Text -> Builder Source #

ToByteString Text Source # 
Instance details

Defined in Data.ByteString.Conversion.To

Methods

builder :: Text -> Builder Source #

ToByteString Integer Source # 
Instance details

Defined in Data.ByteString.Conversion.To

ToByteString Bool Source # 
Instance details

Defined in Data.ByteString.Conversion.To

Methods

builder :: Bool -> Builder Source #

ToByteString Char Source # 
Instance details

Defined in Data.ByteString.Conversion.To

Methods

builder :: Char -> Builder Source #

ToByteString Double Source # 
Instance details

Defined in Data.ByteString.Conversion.To

ToByteString Float Source # 
Instance details

Defined in Data.ByteString.Conversion.To

ToByteString Int Source # 
Instance details

Defined in Data.ByteString.Conversion.To

Methods

builder :: Int -> Builder Source #

ToByteString Word Source # 
Instance details

Defined in Data.ByteString.Conversion.To

Methods

builder :: Word -> Builder Source #

ToByteString (Hex Int16) Source # 
Instance details

Defined in Data.ByteString.Conversion.To

ToByteString (Hex Int32) Source # 
Instance details

Defined in Data.ByteString.Conversion.To

ToByteString (Hex Int64) Source # 
Instance details

Defined in Data.ByteString.Conversion.To

ToByteString (Hex Int8) Source # 
Instance details

Defined in Data.ByteString.Conversion.To

ToByteString (Hex Word16) Source # 
Instance details

Defined in Data.ByteString.Conversion.To

ToByteString (Hex Word32) Source # 
Instance details

Defined in Data.ByteString.Conversion.To

ToByteString (Hex Word64) Source # 
Instance details

Defined in Data.ByteString.Conversion.To

ToByteString (Hex Word8) Source # 
Instance details

Defined in Data.ByteString.Conversion.To

ToByteString (Hex Int) Source # 
Instance details

Defined in Data.ByteString.Conversion.To

Methods

builder :: Hex Int -> Builder Source #

ToByteString (Hex Word) Source # 
Instance details

Defined in Data.ByteString.Conversion.To

ToByteString a => ToByteString (List a) Source # 
Instance details

Defined in Data.ByteString.Conversion.To

Methods

builder :: List a -> Builder Source #

ToByteString a => ToByteString (CI a) Source # 
Instance details

Defined in Data.ByteString.Conversion.To

Methods

builder :: CI a -> Builder Source #

ToByteString [Char] Source # 
Instance details

Defined in Data.ByteString.Conversion.To

Methods

builder :: [Char] -> Builder Source #

toByteString' :: ToByteString a => a -> ByteString Source #

Please note that this needs to convert from a lazy ByteString to a strict one which involves copying the whole string.