summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoachim Breitner <mail@joachim-breitner.de>2020-01-08 09:15:20 +0100
committerJoachim Breitner <mail@joachim-breitner.de>2020-01-08 09:15:20 +0100
commit262219be2194426f74bc6cc25265a66c4e443902 (patch)
tree463e0cb363cc655f865a0dc231ce4a07cdd87c00
parent81179a4d5615c11369a697151501027ef84e12d2 (diff)
nixpkgs manual: Update Haskell versions
and leave a comment in all-packages.nix that the docs should be updated
-rw-r--r--doc/languages-frameworks/haskell.section.md29
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 16 insertions, 15 deletions
diff --git a/doc/languages-frameworks/haskell.section.md b/doc/languages-frameworks/haskell.section.md
index be5c7b7c8d16..b485ec583ec3 100644
--- a/doc/languages-frameworks/haskell.section.md
+++ b/doc/languages-frameworks/haskell.section.md
@@ -84,37 +84,36 @@ nix-env -qaP -A nixos.haskellPackages
nix-env -iA nixos.haskellPackages.cabal-install
```
-Our current default compiler is GHC 7.10.x and the `haskellPackages` set
-contains packages built with that particular version. Nixpkgs contains the
-latest major release of every GHC since 6.10.4, however, and there is a whole
-family of package sets available that defines Hackage packages built with each
-of those compilers, too:
+Our current default compiler is GHC 8.6.x and the `haskellPackages` set
+contains packages built with that particular version. Nixpkgs contains the last
+three major releases of GHC and there is a whole family of package sets
+available that defines Hackage packages built with each of those compilers,
+too:
```shell
-nix-env -f "<nixpkgs>" -qaP -A haskell.packages.ghc6123
-nix-env -f "<nixpkgs>" -qaP -A haskell.packages.ghc763
+nix-env -f "<nixpkgs>" -qaP -A haskell.packages.ghc844
+nix-env -f "<nixpkgs>" -qaP -A haskell.packages.ghc882
```
The name `haskellPackages` is really just a synonym for
-`haskell.packages.ghc7102`, because we prefer that package set internally and
+`haskell.packages.ghc865`, because we prefer that package set internally and
recommend it to our users as their default choice, but ultimately you are free
to compile your Haskell packages with any GHC version you please. The following
command displays the complete list of available compilers:
```
$ nix-env -f "<nixpkgs>" -qaP -A haskell.compiler
-haskell.compiler.ghc822 ghc-8.2.2
-haskell.compiler.integer-simple.ghc822 ghc-8.2.2
+haskell.compiler.ghc8101 ghc-8.10.0.20191210
+haskell.compiler.integer-simple.ghc8101 ghc-8.10.0.20191210
+haskell.compiler.ghcHEAD ghc-8.10.20191119
+haskell.compiler.integer-simple.ghcHEAD ghc-8.10.20191119
haskell.compiler.ghc822Binary ghc-8.2.2-binary
haskell.compiler.ghc844 ghc-8.4.4
haskell.compiler.ghc863Binary ghc-8.6.3-binary
-haskell.compiler.ghc864 ghc-8.6.4
-haskell.compiler.integer-simple.ghc864 ghc-8.6.4
haskell.compiler.ghc865 ghc-8.6.5
haskell.compiler.integer-simple.ghc865 ghc-8.6.5
haskell.compiler.ghc881 ghc-8.8.1
haskell.compiler.integer-simple.ghc881 ghc-8.8.1
-haskell.compiler.ghcHEAD ghc-8.9.20190601
-haskell.compiler.integer-simple.ghcHEAD ghc-8.9.20190601
-haskell.compiler.ghcjs84 ghcjs-8.4.0.1
+haskell.compiler.ghc882 ghc-8.8.1.20191211
+haskell.compiler.integer-simple.ghc882 ghc-8.8.1.20191211
haskell.compiler.ghcjs ghcjs-8.6.0.1
```
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 18132524fba5..7bcc16dfa56b 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -8158,6 +8158,8 @@ in
haskell = callPackage ./haskell-packages.nix { };
+ # Please update doc/languages-frameworks/haskell.section.md, “Our
+ # current default compiler is”, if you bump this:
haskellPackages = dontRecurseIntoAttrs haskell.packages.ghc865;
inherit (haskellPackages) ghc;