Copyright | (C) 2014 Ryan Scott |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Ryan Scott |
Stability | Experimental |
Portability | GHC |
Safe Haskell | None |
Language | Haskell98 |
Monomorphic Show
functions for data types in the bytestring
library.
These are included for convenience (and because bytestring
is a
dependency of this library).
Documentation
showbByteStringStrict :: ByteString -> Builder Source
Convert a strict ByteString
to a Builder
.
showbByteStringLazy :: ByteString -> Builder Source
Convert a lazy ByteString
to a Builder
.
showbByteStringLazyPrec :: Int -> ByteString -> Builder Source
Convert a lazy ByteString
to a Builder
with the given precedence.
With bytestring-0.10.0.0
or later, this function ignores the precedence
argument, since lazy ByteString
s are printed out identically to String
s.
On earlier versions of bytestring
, however, lazy ByteString
s can be printed
with parentheses (e.g., Chunk "example" Empty
vs. (Chunk "example" Empty)
)
depending on the precedence.
showbShortByteString :: ShortByteString -> Builder Source
Convert a ShortByteString
to a Builder
.