diff options
author | Sylvain Henry <sylvain@haskus.fr> | 2020-09-01 11:15:17 +0200 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2020-09-07 16:20:38 -0400 |
commit | 6dbd10542169b2cf8738f13dd02c31fb292ecd08 (patch) | |
tree | 794b4d1b8d58ef723b5dd8f440ff5c596719b090 | |
parent | c2030f0050e4c9025b51d8821f0742a8d49f48f0 (diff) | |
download | haskell-6dbd10542169b2cf8738f13dd02c31fb292ecd08.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 b9ef184923..85f8cfbb2d 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 #-} |