ghc-boot-9.6.1: 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
Read ArchOS Source # 
Instance details

Defined in GHC.Platform.ArchOS

Show ArchOS Source # 
Instance details

Defined in GHC.Platform.ArchOS

Eq ArchOS Source # 
Instance details

Defined in GHC.Platform.ArchOS

Methods

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

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

Ord ArchOS Source # 
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
Read Arch Source # 
Instance details

Defined in GHC.Platform.ArchOS

Show Arch Source # 
Instance details

Defined in GHC.Platform.ArchOS

Eq Arch Source # 
Instance details

Defined in GHC.Platform.ArchOS

Methods

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

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

Ord Arch Source # 
Instance details

Defined in GHC.Platform.ArchOS

Methods

compare :: Arch -> Arch -> Ordering #

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

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

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

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

max :: Arch -> Arch -> Arch #

min :: Arch -> Arch -> Arch #

data OS Source #

Operating systems.

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

Instances

Instances details
Read OS Source # 
Instance details

Defined in GHC.Platform.ArchOS

Show OS Source # 
Instance details

Defined in GHC.Platform.ArchOS

Eq OS Source # 
Instance details

Defined in GHC.Platform.ArchOS

Methods

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

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

Ord OS Source # 
Instance details

Defined in GHC.Platform.ArchOS

Methods

compare :: OS -> OS -> Ordering #

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

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

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

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

max :: OS -> OS -> OS #

min :: OS -> OS -> OS #

data ArmISA Source #

ARM Instruction Set Architecture

Constructors

ARMv5 
ARMv6 
ARMv7 

Instances

Instances details
Read ArmISA Source # 
Instance details

Defined in GHC.Platform.ArchOS

Show ArmISA Source # 
Instance details

Defined in GHC.Platform.ArchOS

Eq ArmISA Source # 
Instance details

Defined in GHC.Platform.ArchOS

Methods

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

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

Ord ArmISA Source # 
Instance details

Defined in GHC.Platform.ArchOS

data ArmABI Source #

ARM ABI

Constructors

SOFT 
SOFTFP 
HARD 

Instances

Instances details
Read ArmABI Source # 
Instance details

Defined in GHC.Platform.ArchOS

Show ArmABI Source # 
Instance details

Defined in GHC.Platform.ArchOS

Eq ArmABI Source # 
Instance details

Defined in GHC.Platform.ArchOS

Methods

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

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

Ord ArmABI Source # 
Instance details

Defined in GHC.Platform.ArchOS

data PPC_64ABI Source #

PowerPC 64-bit ABI

Constructors

ELF_V1

PowerPC64

ELF_V2

PowerPC64 LE

stringEncodeArch :: Arch -> String Source #

See Note [Platform Syntax].

stringEncodeOS :: OS -> String Source #

See Note [Platform Syntax].