Skip to content

Commit

Permalink
Merge pull request #540 from NixOS/with-packages-overriding
Browse files Browse the repository at this point in the history
doc/faq: reflect upstream changes in ghcWithPackages with LLVM section
  • Loading branch information
maralorn authored Jan 28, 2022
2 parents 149c80e + d6268b7 commit 9cbf11b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/frequently-asked-questions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ To include LLVM in GHC you have to override the expression:
.. code:: shell
$ nix-shell -p '(haskellPackages.ghcWithPackages (ps: with ps; [mtl])).override { withLLVM = true; }'
$ nix-shell -p '(haskellPackages.ghcWithPackages.override { useLLVM = true; }) (ps: with ps; [mtl])'
[nix-shell:~]$ ghc -fllvm Main.hs
[1 of 1] Compiling Main ( Main.hs, Main.o )
Expand All @@ -488,7 +488,7 @@ The solution is to add it as another package to the environment:
.. code:: shell
$ nix-shell -p '(haskellPackages.ghcWithPackages (ps: with ps; [mtl])).override { withLLVM = true; }' 'haskellPackages.llvmPackages.llvm'
$ nix-shell -p '(haskellPackages.ghcWithPackages.override { useLLVM = true; }) (ps: with ps; [mtl])' 'haskellPackages.llvmPackages.llvm'
[nix-shell:~]$ llvm-ar --help
OVERVIEW: LLVM Archiver
Expand Down

0 comments on commit 9cbf11b

Please sign in to comment.