HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Moduleghc-toolchain-0.1.0.0Haskell2010

GHC.Toolchain.Target

  • 3 types
  • 8 values

A Toolchain Target

4 declarations
datadata 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

Instances4Eq, Ord, Read, Show
  • Eq TargetDefined in ghc-toolchain-0.1.0.0 · GHC.Toolchain.Target
  • Ord TargetDefined in ghc-toolchain-0.1.0.0 · GHC.Toolchain.Target
  • Read TargetDefined in ghc-toolchain-0.1.0.0 · GHC.Toolchain.Target
  • Show TargetDefined in ghc-toolchain-0.1.0.0 · GHC.Toolchain.Target

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

datadata WordSize
#
Instances4Eq, Ord, Read, Show
  • Eq WordSizeDefined in ghc-toolchain-0.1.0.0 · GHC.Toolchain.Target
  • Ord WordSizeDefined in ghc-toolchain-0.1.0.0 · GHC.Toolchain.Target
  • Read WordSizeDefined in ghc-toolchain-0.1.0.0 · GHC.Toolchain.Target
  • Show WordSizeDefined in ghc-toolchain-0.1.0.0 · GHC.Toolchain.Target

Queries

Does the target RTS linker only support loading shared libraries? If true, this has several implications: 1. The GHC driver must not do loadArchive/loadObj etc and must always do loadDLL, regardless of whether host GHC is dynamic or not. 2. The GHC driver will always enable -dynamic-too when compiling vanilla way with TH codegen requirement. 3. ghci will always enforce dynamic ways even if -dynamic or -dynamic-too is not explicitly passed. 4. Cabal must not build ghci objects since it's not supported by the target. 5. The testsuite driver will use dyn way for TH/ghci tests even when host GHC is static. 6. TH/ghci doesn't work if stage1 is built without shared libraries (e.g. quickest/fully_static).

Lenses

Re-exports

1 declaration
datadata ByteOrder
#

Byte ordering.

Constructors

  • BigEndian

    most-significant-byte occurs in lowest address.

  • LittleEndian

    least-significant-byte occurs in lowest address.

Instances8Bounded, Enum, Eq, Ord, Read, Show, …