Changes between Version 8 and Version 9 of Commentary/Libraries


Ignore:
Timestamp:
May 14, 2009 2:15:02 PM (5 years ago)
Author:
igloo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/Libraries

    v8 v9  
    11= GHC Commentary: Libraries = 
    2  
    3 '''OUT OF DATE: IAN WILL UPDATE''' 
    42 
    53All GHC installations contain a set of libraries called the '''boot packages'''.  They are so called because the boot packages are the ones required for GHC to compile itself (the stage-2 bootstrap compiler).  
    64 
    7 The file `libraries/boot-packages` contains the list of boot packages: 
     5The boot packages, along with the other subcomponents of the GHC build system, are in the file `packages` in a GHC tree. To get a list of them, you can run `make show VALUE=PACKAGES` in a configured GHC build tree. 
    86 
    9  * At the root of the tree we have '''`ghc-prim`'''. As the name implies this package contains the most primitive types and functions. It only contains a handful of modules, including `GHC.Prim` (which contains `Int#`, `+#`, etc) and `GHC.Bool`, containing the `Bool` datatype. 
     7 * At the root of the hierarchy we have '''`ghc-prim`'''. As the name implies, this package contains the most primitive types and functions. It only contains a handful of modules, including `GHC.Prim` (which contains `Int#`, `+#`, etc) and `GHC.Bool`, containing the `Bool` datatype. 
    108 
    119 * Above `ghc-prim` is the '''`integer`''' package, which provides a definition of the `Integer` type on top of the C `gmp` library. Which functionality is provided in `ghc-prim` is mostly driven by what functionality the `integer` package needs. Unlike all the other libraries, the `integer` package does not live in `libraries/integer`, but `libraries/integer-gmp`. This allows alternate implementations to be used, by defining `INTEGER_LIBRARY=integer-foo` in `mk/build.mk`. 
     
    1917    * `containers` 
    2018    * `directory` 
    21     * `editline` 
     19    * `extensible-exceptions` 
    2220    * `filepath` 
     21    * `haskeline` 
    2322    * `haskell98` 
    2423    * `hpc` 
     24    * `mtl` 
    2525    * `old-locale` 
    2626    * `old-time` 
     
    2929    * `process` 
    3030    * `random` 
     31    * `syb` 
    3132    * `template-haskell` 
     33    * `terminfo` 
    3234    * `unix` 
     35    * `utf8-string` 
    3336    * `Win32` 
    34   However the definitive list is in `libraries/boot-packages` 
    35  
    36