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

Copyright(C) 2014-2016 Ryan Scott
LicenseBSD-style (see the file LICENSE)
MaintainerRyan Scott
StabilityProvisional
PortabilityGHC
Safe HaskellNone
LanguageHaskell2010

TextShow.Foreign.Ptr

Contents

Description

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

Since: 2

Synopsis

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

Orphan instances

TextShow1 Ptr Source # 

Methods

liftShowbPrec :: (Int -> a -> Builder) -> ([a] -> Builder) -> Int -> Ptr a -> Builder Source #

liftShowbList :: (Int -> a -> Builder) -> ([a] -> Builder) -> [Ptr a] -> Builder Source #

TextShow1 FunPtr Source # 

Methods

liftShowbPrec :: (Int -> a -> Builder) -> ([a] -> Builder) -> Int -> FunPtr a -> Builder Source #

liftShowbList :: (Int -> a -> Builder) -> ([a] -> Builder) -> [FunPtr a] -> Builder Source #

TextShow1 ForeignPtr Source # 

Methods

liftShowbPrec :: (Int -> a -> Builder) -> ([a] -> Builder) -> Int -> ForeignPtr a -> Builder Source #

liftShowbList :: (Int -> a -> Builder) -> ([a] -> Builder) -> [ForeignPtr a] -> Builder Source #

TextShow WordPtr Source # 
TextShow IntPtr Source # 
TextShow (Ptr a) Source # 
TextShow (FunPtr a) Source # 
TextShow (ForeignPtr a) Source #