ghc-7.10.2: The GHC API

Safe HaskellNone
LanguageHaskell2010

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

Arithmetic on FastInt

(+#) :: Int# -> Int# -> Int#

(-#) :: Int# -> Int# -> Int#

(*#) :: Int# -> Int# -> Int#

(==#) :: Int# -> Int# -> Bool infix 4

(/=#) :: Int# -> Int# -> Bool infix 4

(<#) :: Int# -> Int# -> Bool infix 4

(<=#) :: Int# -> Int# -> Bool infix 4

(>=#) :: Int# -> Int# -> Bool infix 4

(>#) :: Int# -> Int# -> Bool infix 4

FastChar

type FastChar = Char#

Getting in and out of 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