[commit: ghc] wip/hadrian-import-packages: Update user-settings.md with a pointer to `Packages` (638e1ae)

git at git.haskell.org git at git.haskell.org
Sat Feb 2 09:00:08 UTC 2019


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/hadrian-import-packages
Link       : http://ghc.haskell.org/trac/ghc/changeset/638e1aefae88045c30134cf7c69df3f893049263/ghc

>---------------------------------------------------------------

commit 638e1aefae88045c30134cf7c69df3f893049263
Author: Sebastian Graf <sgraf1337 at gmail.com>
Date:   Fri Feb 1 04:48:41 2019 -0500

    Update user-settings.md with a pointer to `Packages`
    
    [skip ci]


>---------------------------------------------------------------

638e1aefae88045c30134cf7c69df3f893049263
 hadrian/doc/user-settings.md | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/hadrian/doc/user-settings.md b/hadrian/doc/user-settings.md
index 6c6aab7..49e560c 100644
--- a/hadrian/doc/user-settings.md
+++ b/hadrian/doc/user-settings.md
@@ -107,6 +107,10 @@ path component, excluding any separators.
 Users can add and remove packages from particular build stages. As an example,
 below we add package `base` to Stage0 and remove package `haskeline` from Stage1:
 ```haskell
+...
+import Packages
+...
+
 userFlavour :: Flavour
 userFlavour = defaultFlavour { name = "user", packages = modifiedPackages }
 
@@ -136,7 +140,7 @@ You can choose which integer library to use when builing GHC using the
 (default) and `integerSimple`.
 ```haskell
 userFlavour :: Flavour
-userFlavour = defaultFlavour { name = "user", integerLibrary = integerSimple }
+userFlavour = defaultFlavour { name = "user", integerLibrary = pure integerSimple }
 ```
 
 ### Specifying the final stage to build



More information about the ghc-commits mailing list