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.Foreign.Ptr

Description

Monomorphic `TextShow` functions for pointer types used in the Haskell Foreign Function Interface (FFI).

Since: 2

Synopsis

- showbPtr :: Ptr a -> Builder
- showbFunPtr :: FunPtr a -> Builder
- showbIntPtrPrec :: Int -> IntPtr -> Builder
- showbWordPtr :: WordPtr -> Builder
- showbForeignPtr :: ForeignPtr a -> Builder

# Documentation

showbPtr :: Ptr a -> Builder Source

Convert a `Ptr` to a `Builder`. Note that this does not require the parameterized type to be an instance of `Show` itself.

Since: 2

showbFunPtr :: FunPtr a -> Builder Source

Convert a `FunPtr` to a `Builder`. Note that this does not require the parameterized type to be an instance of `Show` itself.

Since: 2

showbIntPtrPrec :: Int -> IntPtr -> Builder Source

Convert an `IntPtr` to a `Builder` with the given precedence.

Since: 2

showbWordPtr :: WordPtr -> Builder Source

Convert a `WordPtr` to a `Builder`.

Since: 2

showbForeignPtr :: ForeignPtr a -> Builder Source

Convert a `ForeignPtr` to a `Builder`. Note that this does not require the parameterized type to be an instance of `Show` itself.

Since: 2