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

Copyright | (C) 2014-2015 Ryan Scott
License | BSD-style (see the file LICENSE)
Maintainer | Ryan Scott
Stability | Provisional
Portability | GHC
Safe Haskell | None
Language | Haskell2010

TextShow.System.IO

Description

Monomorphic `TextShow` function for `IO`-related data types.

Since: 2

Synopsis

- showbHandle :: Handle -> Builder
- showbIOMode :: IOMode -> Builder
- showbBufferModePrec :: Int -> BufferMode -> Builder
- showbHandlePosn :: HandlePosn -> Builder
- showbSeekMode :: SeekMode -> Builder
- showbTextEncoding :: TextEncoding -> Builder
- showbCodingProgress :: CodingProgress -> Builder
- showbCodingFailureMode :: CodingFailureMode -> Builder
- showbNewline :: Newline -> Builder
- showbNewlineModePrec :: Int -> NewlineMode -> Builder

# Documentation

showbHandle :: Handle -> Builder Source

Convert a `Handle` to a `Builder`.

Since: 2

showbIOMode :: IOMode -> Builder Source

Convert an `IOMode` to a `Builder`.

Since: 2

showbBufferModePrec :: Int -> BufferMode -> Builder Source

Convert a `BufferMode` to a `Builder` with the given precedence.

Since: 2

showbHandlePosn :: HandlePosn -> Builder Source

Convert a `HandlePosn` to a `Builder`.

Since: 2

showbSeekMode :: SeekMode -> Builder Source

Convert a `SeekMode` to a `Builder`.

Since: 2

showbTextEncoding :: TextEncoding -> Builder Source

Convert a `TextEncoding` to a `Builder`.

Since: 2

showbCodingProgress :: CodingProgress -> Builder Source

Convert a `CodingProgress` to a `Builder`. This function is only available with `base-4.4.0.0` or later.

Since: 2

showbCodingFailureMode :: CodingFailureMode -> Builder Source

Convert a `CodingFailureMode` value to a `Builder`. This function is only available with `base-4.4.0.0` or later.

Since: 2

showbNewline :: Newline -> Builder Source

Convert a `Newline` to a `Builder`.

Since: 2

showbNewlineModePrec :: Int -> NewlineMode -> Builder Source

Convert a `NewlineMode` to a `Builder` with the given precedence.

Since: 2