ghc-boot-8.11.0.20200801: Shared functionality between GHC and its boot libraries
Safe HaskellSafe-Inferred
LanguageHaskell2010

GHC.Platform.ArchOS

Description

Platform architecture and OS

We need it in ghc-boot because ghc-pkg needs it.

Synopsis

Documentation

data ArchOS Source #

Platform architecture and OS.

Constructors

ArchOS 

Fields

Instances

Instances details
Eq ArchOS # 
Instance details

Defined in GHC.Platform.ArchOS

Methods

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

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

Read ArchOS # 
Instance details

Defined in GHC.Platform.ArchOS

Show ArchOS # 
Instance details

Defined in GHC.Platform.ArchOS

data Arch Source #

Architectures

TODO: It might be nice to extend these constructors with information about what instruction set extensions an architecture might support.

Instances

Instances details
Eq Arch # 
Instance details

Defined in GHC.Platform.ArchOS

Methods

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

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

Read Arch # 
Instance details

Defined in GHC.Platform.ArchOS

Show Arch # 
Instance details

Defined in GHC.Platform.ArchOS

data OS Source #

Operating systems.

Using OSUnknown to generate code should produce a sensible default, but no promises.

Instances

Instances details
Eq OS # 
Instance details

Defined in GHC.Platform.ArchOS

Methods

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

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

Read OS # 
Instance details

Defined in GHC.Platform.ArchOS

Show OS # 
Instance details

Defined in GHC.Platform.ArchOS

data ArmISA Source #

ARM Instruction Set Architecture

Constructors

ARMv5 
ARMv6 
ARMv7 

Instances

Instances details
Eq ArmISA # 
Instance details

Defined in GHC.Platform.ArchOS

Methods

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

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

Read ArmISA # 
Instance details

Defined in GHC.Platform.ArchOS

Show ArmISA # 
Instance details

Defined in GHC.Platform.ArchOS

data ArmISAExt Source #

ARM extensions

Constructors

VFPv2 
VFPv3 
VFPv3D16 
NEON 
IWMMX2 

data ArmABI Source #

ARM ABI

Constructors

SOFT 
SOFTFP 
HARD 

Instances

Instances details
Eq ArmABI # 
Instance details

Defined in GHC.Platform.ArchOS

Methods

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

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

Read ArmABI # 
Instance details

Defined in GHC.Platform.ArchOS

Show ArmABI # 
Instance details

Defined in GHC.Platform.ArchOS

data PPC_64ABI Source #

PowerPC 64-bit ABI

Constructors

ELF_V1 
ELF_V2 

stringEncodeArch :: Arch -> String Source #

See Note [Platform Syntax].

stringEncodeOS :: OS -> String Source #

See Note [Platform Syntax].