diff options
author | Peter Simons <simons@cryp.to> | 2015-06-01 15:19:53 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2015-06-01 15:19:53 +0200 |
commit | d4412bf6c45ee5d4f9b00fed58c2ce15b783ce62 (patch) | |
tree | f2219a4629a3ff64749ae7a9b317fe57132edd38 /nixos/doc | |
parent | 4f0d8460c0fa2328763c847a44ed1deb8dc047e0 (diff) | |
download | nixlib-d4412bf6c45ee5d4f9b00fed58c2ce15b783ce62.tar nixlib-d4412bf6c45ee5d4f9b00fed58c2ce15b783ce62.tar.gz nixlib-d4412bf6c45ee5d4f9b00fed58c2ce15b783ce62.tar.bz2 nixlib-d4412bf6c45ee5d4f9b00fed58c2ce15b783ce62.tar.lz nixlib-d4412bf6c45ee5d4f9b00fed58c2ce15b783ce62.tar.xz nixlib-d4412bf6c45ee5d4f9b00fed58c2ce15b783ce62.tar.zst nixlib-d4412bf6c45ee5d4f9b00fed58c2ce15b783ce62.zip |
nixos release notes: document incompatible changes due to Haskell NG
Diffstat (limited to 'nixos/doc')
-rw-r--r-- | nixos/doc/manual/release-notes/rl-unstable.xml | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/nixos/doc/manual/release-notes/rl-unstable.xml b/nixos/doc/manual/release-notes/rl-unstable.xml index 837fdf07cecd..a7ba1cb1ff56 100644 --- a/nixos/doc/manual/release-notes/rl-unstable.xml +++ b/nixos/doc/manual/release-notes/rl-unstable.xml @@ -83,6 +83,64 @@ was accordingly renamed to <literal>bomi</literal> </para> </listitem> +<listitem> + <para> + Haskell packages can no longer be found by name, i.e. the commands + <literal>nix-env -qa cabal-install</literal> and <literal>nix-env -i + ghc</literal> will fail, even though we <emphasis>do</emphasis> ship + both <literal>cabal-install</literal> and <literal>ghc</literal>. + The reason for this inconvenience is the sheer size of the Haskell + package set: name-based lookups such as these would become much + slower than they are today if we'd add the entire Hackage database + into the top level attribute set. Instead, the list of Haskell + packages can be displayed by + </para> + <programlisting> +nix-env -f "<nixpkgs>" -qaP -A haskellPackages +</programlisting> + <para> + and packages can be installed with: + </para> + <programlisting> +nix-env -f "<nixpkgs>" -iA haskellPackages.cabal-install +</programlisting> +</listitem> + +<listitem> + <para> + Previous versions of NixOS come with a feature called + <literal>ghc-wrapper</literal>, a small wrapper script that allows + GHC to transparently pick up on libraries installed in the user's + profile. This feature has been deprecated; + <literal>ghc-wrapper</literal> was removed from the distribution. + The proper way to register Haskell libraries with the compiler now + is the <literal>haskellPackages.ghcWithPackages</literal> + function. + <link xlink:href="https://nixos.org/wiki/Haskell">https://nixos.org/wiki/Haskell</link> + provides much information about this subject. + </para> +</listitem> + +<listitem> + <para> + All Haskell builds that have been generated with version 1.x of + the <literal>cabal2nix</literal> utility are now invalid and need + to be re-generated with a current version of + <literal>cabal2nix</literal> to function. The most recent version + of this tool can be installed by running + <literal>nix-env -i cabal2nix</literal>. + </para> +</listitem> + +<listitem> + <para> + The <literal>haskellPackages</literal> set in Nixpkgs used to have a + function attribute called <literal>extension</literal> that users + could override in their <literal>~/.nixpkgs/config.nix</literal> + files to configure additional attributes, etc. That function still + exists, but it's now called <literal>overrides</literal>. + </para> +</listitem> </itemizedlist> </para> |