ghc-7.0.3: The GHC API

FastTypes

Contents

Description

Fast integers, characters and pointer types for use in many parts of GHC

Synopsis

FastInt

type FastInt = Int#

Getting in and out of FastInt

_ILIT :: Int -> FastInt

iBox :: FastInt -> Int

iUnbox :: Int -> FastInt

Arithmetic on FastInt

+#

-#

*#

==#

/=#

<#

<=#

>=#

>#

FastChar

type FastChar = Char#

Getting in and out of FastChar

_CLIT :: Char -> FastChar

cBox :: FastChar -> Char

cUnbox :: Char -> FastChar

Operations on FastChar

FastPtr

type FastPtr a = Addr#

Getting in and out of FastPtr

pBox :: FastPtr a -> Ptr a

pUnbox :: Ptr a -> FastPtr a

Casting FastPtrs