PprBase

ghc-8.10.4: The GHC API

Safe Haskell | None
Language | Haskell2010

PprBase

Synopsis

- castFloatToWord8Array :: STUArray s Int Float -> ST s (STUArray s Int Word8)
- castDoubleToWord8Array :: STUArray s Int Double -> ST s (STUArray s Int Word8)
- floatToBytes :: Float -> [Int]
- doubleToBytes :: Double -> [Int]
- pprASCII :: ByteString -> SDoc
- pprBytes :: ByteString -> SDoc
- pprSectionHeader :: Platform -> Section -> SDoc

# Documentation

castFloatToWord8Array :: STUArray s Int Float -> ST s (STUArray s Int Word8) Source #

castDoubleToWord8Array :: STUArray s Int Double -> ST s (STUArray s Int Word8) Source #

floatToBytes :: Float -> [Int] Source #

doubleToBytes :: Double -> [Int] Source #

pprASCII :: ByteString -> SDoc Source #

pprBytes :: ByteString -> SDoc Source #

Pretty print binary data.

Use either the ".string" directive or a ".incbin" directive. See Note [Embedding large binary blobs]

A NULL byte is added after the binary data.

pprSectionHeader :: Platform -> Section -> SDoc Source #