diff options
author | Sylvain Henry <sylvain@haskus.fr> | 2020-09-01 11:15:17 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-09-02 15:56:11 -0400 |
commit | ffc3da474bd6febf8a120ebd432ad69f92fe03e0 (patch) | |
tree | 7ad9d05ca4c3ef3c8f81d6b3831ab012b70938f1 | |
parent | c30cc0e9c3704b24ad0f6d9a0199bf8b5835bd40 (diff) | |
download | haskell-ffc3da474bd6febf8a120ebd432ad69f92fe03e0.tar.gz |
Remove outdated note
-rw-r--r-- | compiler/GHC/Builtin/Names.hs | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/compiler/GHC/Builtin/Names.hs b/compiler/GHC/Builtin/Names.hs index 61c6680700..dd4a3c075d 100644 --- a/compiler/GHC/Builtin/Names.hs +++ b/compiler/GHC/Builtin/Names.hs @@ -116,35 +116,6 @@ known keys. See Note [One-tuples] (Wrinkle: Make boxed one-tuple names have known keys) in GHC.Builtin.Types. -Note [The integer library] -~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Clearly, we need to know the names of various definitions of the integer -library, e.g. the type itself, `mkInteger` etc. But there are two possible -implementations of the integer library: - - * integer-gmp (fast, but uses libgmp, which may not be available on all - targets and is GPL licensed) - * integer-simple (slow, but pure Haskell and BSD-licensed) - -We want the compiler to work with either one. The way we achieve this is: - - * When compiling the integer-{gmp,simple} library, we pass - -this-unit-id integer-wired-in - to GHC (see the cabal file libraries/integer-{gmp,simple}. - * This way, GHC can use just this UnitID (see Module.integerUnitId) when - generating code, and the linker will succeed. - -Unfortuately, the abstraction is not complete: When using integer-gmp, we -really want to use the S# constructor directly. This is controlled by -the `integerLibrary` field of `DynFlags`: If it is IntegerGMP, we use -this constructor directly (see CorePrep.lookupIntegerSDataConName) - -When GHC reads the package data base, it (internally only) pretends it has UnitId -`integer-wired-in` instead of the actual UnitId (which includes the version -number); just like for `base` and other packages, as described in -Note [Wired-in units] in GHC.Unit.Module. This is done in -GHC.Unit.State.findWiredInUnits. -} {-# LANGUAGE CPP #-} |