ghc-toolchain-0.1.0.0: Utility for managing GHC target toolchains
Safe HaskellNone
LanguageHaskell2010

GHC.Toolchain.Target

Synopsis

Documentation

data WordSize #

Constructors

WS4 
WS8 

Instances

Instances details
Eq WordSize # 
Instance details

Defined in GHC.Toolchain.Target

Ord WordSize # 
Instance details

Defined in GHC.Toolchain.Target

Read WordSize # 
Instance details

Defined in GHC.Toolchain.Target

Show WordSize # 
Instance details

Defined in GHC.Toolchain.Target

data Target #

A Target consists of:

  • a target architecture and operating system
  • various bits of information about the platform
  • various toolchain components targetting that platform

Constructors

Target 

Fields

Instances

Instances details
Eq Target # 
Instance details

Defined in GHC.Toolchain.Target

Methods

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

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

Ord Target # 
Instance details

Defined in GHC.Toolchain.Target

Read Target # 
Instance details

Defined in GHC.Toolchain.Target

Show Target #

Handwritten Show instance to have have better diffs against the toolchain targets generated by configure

Instance details

Defined in GHC.Toolchain.Target

wordSize2Bytes :: WordSize -> Int #

The word size as an integer representing the number of bytes

targetPlatformTriple :: Target -> String #

Reconstruct the platform triple from a toolchain target (specifically from tgtArchOs and tgtVendor)