ghc-7.8.2: The GHC API

Safe HaskellNone
LanguageHaskell98

FastTypes

Contents

Description

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

Synopsis

FastInt

type FastInt = Int# Source

Getting in and out of FastInt

Arithmetic on FastInt

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

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

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

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

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

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

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

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

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

FastChar

type FastChar = Char# Source

Getting in and out of FastChar

Operations on FastChar

FastPtr

type FastPtr a = Addr# Source

Getting in and out of FastPtr

Casting FastPtrs