|
Text.Show.ByteString | Portability | Non-portable (type synonym instances) | Stability | Experimental | Maintainer | Dan Doel |
|
|
|
|
|
Description |
Efficiently convert from values to lazy byte strings.
|
|
Synopsis |
|
|
|
|
The Show class
|
|
|
Conversion of values to readable byte strings.
Minimal complete definition: showp
| | Methods | | Encodes a value to an efficient byte string builder.
Values of type Put can be efficiently combined, so this
is available for building strings from multiple values.
| | | Allows for specialized display of lists of values.
This is used, for example, when showing arrays of Chars.
|
| | Instances | Show Bool | Show Char | Show Double | Show Float | Show Int | Show Int8 | Show Int16 | Show Int32 | Show Integer | Show Word | Show Word8 | Show Word16 | Show Word32 | Show () | Show Put | Show a => Show ([] a) | (Show a, Integral a) => Show (Ratio a) | (Show a, RealFloat a) => Show (Complex a) | Show a => Show (Maybe a) | (Show a, Show b) => Show ((,) a b) | (Show a, Show b, Show c) => Show ((,,) a b c) | (Show a, Show b, Show c, Show d) => Show ((,,,) a b c d) | (Show a, Show b, Show c, Show d, Show e) => Show ((,,,,) a b c d e) | (Show a, Show b, Show c, Show d, Show e, Show f) => Show ((,,,,,) a b c d e f) | (Show a, Show b, Show c, Show d, Show e, Show f, Show g) => Show ((,,,,,,) a b c d e f g) |
|
|
|
|
Encode a single value into a byte string
|
|
Putting Chars
|
|
|
Writes a single Char to a byte string, assuming it's ascii.
|
|
|
Writes a single Char to a byte string, properly UTF-8 encoded
|
|
Putting Strings
|
|
|
Writes a string of ascii characters to a byte string
|
|
|
Writes a string of unicode characters to a byte string,
properly UTF-8 encoded
|
|
Putting digits
|
|
|
Puts the decimal digit corresponding to the given Int without
checking that it is in the interval [0,9]
|
|
|
Puts the digit corresponding to the Int passed in.
|
|
Putting floats
|
|
|
Show a signed RealFloat value using decimal notation when the
absolute value lies between 0.1 and 9,999,999, and scientific
notation otherwise. The optional integer can be used to specify
precision.
|
|
|
Show a signed RealFloat value using decimal notation. The optional
integer can be used to specify precision.
|
|
|
Show a signed RealFloat value using scientific (exponential) notation.
The optional integer can be used to specify precision.
|
|
Combining builders
|
|
|
Merge several string builders, separating them by newlines
|
|
|
Merge several string builders, separating them by spaces
|
|
Printing values
|
|
|
Print a value to the standard output
|
|
Produced by Haddock version 2.3.0 |