ghc-8.4.1: The GHC API

Safe HaskellSafe
LanguageHaskell2010

Platform

Description

A description of the platform we're compiling for.

Synopsis

Documentation

data Platform Source #

Contains enough information for the native code generator to emit code for this platform.

data Arch Source #

Architectures that the native code generator knows about. TODO: It might be nice to extend these constructors with information about what instruction set extensions an architecture might support.

Instances
Eq Arch Source # 
Instance details

Methods

(==) :: Arch -> Arch -> Bool #

(/=) :: Arch -> Arch -> Bool #

Read Arch Source # 
Instance details
Show Arch Source # 
Instance details

data OS Source #

Operating systems that the native code generator knows about. Having OSUnknown should produce a sensible default, but no promises.

Instances
Eq OS Source # 
Instance details

Methods

(==) :: OS -> OS -> Bool #

(/=) :: OS -> OS -> Bool #

Read OS Source # 
Instance details
Show OS Source # 
Instance details

data ArmISA Source #

ARM Instruction Set Architecture, Extensions and ABI

Constructors

ARMv5 
ARMv6 
ARMv7 
Instances
Eq ArmISA Source # 
Instance details

Methods

(==) :: ArmISA -> ArmISA -> Bool #

(/=) :: ArmISA -> ArmISA -> Bool #

Read ArmISA Source # 
Instance details
Show ArmISA Source # 
Instance details

data ArmABI Source #

Constructors

SOFT 
SOFTFP 
HARD 
Instances
Eq ArmABI Source # 
Instance details

Methods

(==) :: ArmABI -> ArmABI -> Bool #

(/=) :: ArmABI -> ArmABI -> Bool #

Read ArmABI Source # 
Instance details
Show ArmABI Source # 
Instance details

target32Bit :: Platform -> Bool Source #

This predicate tells us whether the platform is 32-bit.

osElfTarget :: OS -> Bool Source #

This predicate tells us whether the OS supports ELF-like shared libraries.

osMachOTarget :: OS -> Bool Source #

This predicate tells us whether the OS support Mach-O shared libraries.