Commit graph

81 commits

Author SHA1 Message Date
sternenseemann ed65db9c51 ghc: 9.10.2 -> 9.10.3
https://www.haskell.org/ghc/blog/20250910-ghc-9.10.3-released.html
2025-09-12 00:34:54 +02:00
Wolfgang Walther e883d6d78c
Merge commit '50a00d8692c0253cc75a3dc0bfc46a88d98f1b8c' into haskell-updates 2025-09-07 20:29:39 +02:00
Emily 3b7e7e362b haskell.compiler.ghc928: drop 2025-09-07 18:45:52 +01:00
Robert Hensing 36bc5fa622 Merge master into haskell-updates 2025-08-28 14:08:43 +02:00
Ben Siraphob cc5b731ed3
doc: fix typos 2025-08-27 11:46:26 -07:00
sternenseemann 6516f9f0d8 ghc: 9.8.4 -> 9.10.2
GHC 9.10.2 seems to be unaffected by the i686 issue, so we can use 9.10
almost everywhere, c.f. https://gitlab.haskell.org/ghc/ghc/-/issues/25904.

haskellPackages: stackage LTS 23.27 -> LTS 24.2

all-cabal-hashes: 2025-07-07T21:33:55Z -> 2025-07-28T06:22:26Z

Make sure to retain Cabal and Cabal-syntax == 3.14.* which is currently
used by cabal2nix-unstable.
2025-07-30 12:32:47 +02:00
Wolfgang Walther 62fe016519
treewide: run treefmt with mdcr/nixfmt 2025-07-24 13:52:31 +02:00
Rebecca Turner d3e4f784aa
haskellPackages.mkDerivation: Add env argument
Previously, setting environment variables in a Haskell package build
required using `.overrideAttrs`, which (I think?) breaks later
invocations of `haskell.lib.overrideCabal`.

This patch adds an `env` argument to `haskellPackages.mkDerivation`,
which can be used to set environment variables during Haskell package
builds.
2025-07-16 11:38:18 -07:00
maralorn a5bbc5046b
doc/haskell: Add GHC deprecation policy 2025-06-01 22:01:05 +02:00
sternenseemann 88de1ef84a haskellPackages: Cabal* 3.14.1.* -> 3.14.2.0 2025-04-23 13:31:37 +02:00
nixpkgs-ci[bot] 73a1ced090
Merge c73deb7619 into haskell-updates 2025-04-17 00:19:30 +00:00
Pol Dellaiera bcea0cf344 doc: update Nix code snippets format
Command: `mdcr --config doc/tests/mdcr-config.toml doc/`
2025-04-17 01:30:34 +02:00
Thomas Miedema 5386852b57 haskell: document shellFor extraDependencies 2025-03-23 18:38:31 +01:00
Teo Camarasu 9f22e12dea haskellPackages.mkDerivation: Replace testTarget with testTargets
testTarget takes a space separated list of test suites to run. We itnroduce a new testTargets argument that instead takes a list, and add a backwards compatibility shim
2025-02-11 12:03:18 +00:00
sternenseemann ad99400541 haskellPackages.ghc: 9.6.6 -> 9.8.4
This matches the update from Stackage LTS 22 -> 23 in 7ea7574c.

Regenerate the package set with compiler: ghc-9.8.3 passed to Cabal
using

  env \
    HACKAGE2NIX=/nix/store/57ivr7wj0bzgkgvgp6i1dsz5rbihy2an-cabal2nix-unstable-2024-12-31/bin/hackage2nix \
   bash ./maintainers/scripts/haskell/regenerate-hackage-packages.sh --fast

since cabal2nix-unstable doesn't build yet (I assume).
2025-01-08 19:30:09 +01:00
sternenseemann 707440405d haskellPackages.Cabal_3_14_*: 3.14.1.0 -> 3.14.1.1 2025-01-08 19:30:09 +01:00
sternenseemann 0bbb00e8ee haskellPackages: use Cabal 3.14.1.0 over 3.14.0.0 2024-12-26 15:41:54 +01:00
sternenseemann 95c179f9fb haskell.compiler.ghc94{5,6}: remove at 9.4.5 and 9.4.6, respectively
Both are affected by <https://gitlab.haskell.org/ghc/ghc/-/issues/23762>
which is now cropping up on our CI (for Cabal 3.14). I don't really see
why we absolutely have to keep them, so it seems just better overall to
use this as an excuse to remove them (after NixOS 24.11 branch off).
2024-12-07 21:34:41 +01:00
sternenseemann b5ee541524 doc/haskell: update default GHC version 2024-11-03 12:29:33 +01:00
maralorn 51031f223c
haskellPackages.mkDerivation: Add support for sourceRoot and setSourceRoot arguments (#351226) 2024-11-01 23:29:42 +01:00
Rebecca Turner ff9e35236c
haskell.mkDerivation: Support sourceRoot, setSourceRoot
Allow setting `sourceRoot` and `setSourceRoot` in the arguments to
`haskellPackages.mkDerivation`. These arguments are passed directly to
`stdenv.mkDerivation`.

It may be worth reading over `pkgs/stdenv/generic/setup.sh` and checking
if there's other unsupported variables which may be useful. It may also
be worth adding an argument like `extraAttrs` to be passed to
`stdenv.mkDerivation` directly, as an escape hatch.
2024-10-25 09:41:50 -07:00
sternenseemann cd3949a15c haskellPackages.Cabal_3_6_3_0: remove at 3.6.3.0 2024-10-17 15:48:55 +02:00
Rodney Lorrimar e2d259ebc0 pkgs.haskell.lib: Add disableParallelBuilding function 2024-09-23 11:36:24 +02:00
Valentin Gagarin 1ee872a769
doc: add a generic section on exploring package sets (#317392)
this removes the hard-coded listing from the Haskell examples, which can later be replaced by
a dynamic one as for the Python interpreters

* fix broken reference

* clarify why using `nix-env --query` makes sense

Co-authored-by: wamirez <wamirez@protonmail.com>
2024-06-28 12:10:56 +02:00
Robert Hensing 299bd6aa7c doc/haskell: Dedup and edit justStaticExecutables
Make sure all relevant info is in the user manual and avoid duplication
of efforts, or things going out of sync.
2024-06-13 00:25:41 +02:00
Rebecca Turner d2618822ab haskell.lib.compose.justStaticExecutables: Forbid references to GHC
This makes `justStaticExecutables` error if the produced store path
contains references to GHC. This is almost always erroneous and due to
the generated `Paths_*` module being imported. This helps prevent
`justStaticExecutables` from producing binaries with closure sizes in
the gigabytes.

See: https://github.com/NixOS/nixpkgs/issues/164630

Co-authored-by: sternenseemann <sternenseemann@systemli.org>
2024-05-27 21:08:16 +02:00
Armando Ramirez 876d055062 callCabal2nixWithOptions: add srcModifier argument
Fixes #256769

Repro + test of fix here: https://gitlab.com/ramirez7/bug-repros/-/merge_requests/1

Adds a `srcModifier` argument to `callCabal2nixWithOptions` to allow
customizing the source files used to generate the cabal file (e.g. to
support `hpack`/`package.yaml`).
2024-05-09 23:55:37 +02:00
Wolfgang Walther 72e03b91ea
haskellPackages: add dontCheckIf helper
Using this helper will prevent introducing problematic doCheck = condition overrides,
which accidentally re-enable previously disabled tests.
2024-02-26 12:32:02 +01:00
github-actions[bot] 05ce1c8cd3
Merge master into haskell-updates 2024-02-01 00:13:01 +00:00
sternenseemann 571a07d774 doc/haskell: don't use lib.recursiveUpdate in overlays
`lib.recursiveUpdate` indiscriminately recurses into all attribute sets,
also into derivations. This means that it is possible that evaluating a
derivation in the final haskell package set can cause something in
`prev.haskell` to be forced by `recursiveUpdate`, potentially causing an
evaluation error that should not happen.

It can be fixed using a well-crafted predicate for
`lib.recursiveUpdateUntil`, but most robust is just explicitly writing
out the desired merging manually.
2024-01-31 23:49:32 +01:00
github-actions[bot] acd0181532
Merge master into haskell-updates 2024-01-26 00:12:48 +00:00
sternenseemann 65fc44c341 haskell.compiler.ghc8102Binary: remove at 8.10.2
Since 46f14d30aa, it no longer has any
users in nixpkgs.
2024-01-25 15:20:35 +01:00
sternenseemann 2f8dcca4a9 haskellPackages.ghc: 9.6.3 -> 9.6.4 2024-01-22 15:14:41 +01:00
sternenseemann d9b750c286 haskellPackages.ghc: 9.4.8 -> 9.6.3 2024-01-07 14:14:09 +01:00
Arnout Engelen 97b0ae26f7
doc: avoid 'simply' (#266434)
While the word 'simply' is usually added to encourage readers, it often has the
opposite effect and may even appear condescending, especially when the reader
runs into trouble trying to apply the suggestions from the documentation. It is
almost always an improvement to simply drop the word from the sentence.

(there are more possible improvements like this, we can apply those in separate
PRs)
2023-11-09 21:48:05 +01:00
github-actions[bot] 23bb2be564
Merge master into haskell-updates 2023-09-29 00:11:52 +00:00
Peder Bergebakken Sundt 470614b671 treewide: Fix typos 2023-09-28 19:06:13 +02:00
maralorn a4f9ea332a
haskell-docs: Fix typo in function name 2023-09-20 19:44:16 +02:00
maralorn 85331ccd98
doc/../haskell.section.md: Make a bit clearer and more beginner friendly 2023-07-15 02:18:29 +02:00
sternenseemann 8088e14e12 doc/haskell: FAQ entry on changing profiling settings globally
This is actually relatively complicated to achieve, since it involves
overriding GHC on e.g. aarch64-darwin, so the FAQ entry seems warranted.

It's also a good exercise to me, since it demonstrates some problems
with the overriding infrastructure, i.e. that it has a tendency to
inherit the pkgs fixpoint from prev. An example of this problem is
https://github.com/NixOS/nixpkgs/issues/235960, but it has different
manifestations as well. Awareness of this will also help writing the
other sections on overriding.

How complicated it is, seems to be further incentive to go ahead with
https://github.com/NixOS/nixpkgs/pull/239548 as well.
2023-06-30 01:52:42 +02:00
sternenseemann 1db464d40a doc/haskell: document {enable,disable}*Profiling functions 2023-06-30 01:52:42 +02:00
maralorn fc3668a3ab
haskellPackages: Use separate bin output for multiple packages 2023-06-11 19:40:28 +02:00
Julian Arni 858583a958
doc/language-frameworks/haskell: fix argument order of setBuildTargets (#236252) 2023-06-06 18:28:23 +02:00
Rebecca Turner ec2938bfa5
Document incremental build support for Haskell 2023-05-25 14:36:18 -07:00
sternenseemann 2fe11e6fee haskell.compiler.ghc94: 9.4.4 -> 9.4.5
https://www.haskell.org/ghc/blog/20230418-ghc-9.4.5-released.html
2023-04-22 17:47:11 +02:00
pennae 052bb41410 doc: assign ids to many headings
without stable ids on headings we cannot generate stable links to these
headings. nrd complains about this, but the current docbook workflow
does not.

a few generated ids remain, mostly in examples and footnotes. most of
the examples are generated by nixdoc (which has since gained MD export
functions, and the MD export does generate IDs).
2023-03-27 22:39:11 +02:00
sternenseemann b7d8c46302 haskellPackages.ghc: 9.2.6 -> 9.2.7
https://www.haskell.org/ghc/blog/20230227-ghc-9.2.7-released.html

Also updates some of the printouts in the manual. We should probably
make it clear in the text that these may be outdated, since we are doing
a terrible job keeping up…
2023-03-01 18:41:14 +01:00
maralorn b5fa92b2e6 doc/haskell: Add clarifications in section about versions 2023-02-18 15:15:11 +01:00
Jason Yundt b1bb9bb6c8 treewide: fix backwards smart apostrophes
According to the Unicode Standard, you should use U+2019 RIGHT SINGLE
QUOTATION MARK for apostrophes [1]. Before this change, some of the text
in this repo would use U+2018 LEFT SINGLE QUOTATION MARKs instead.

[1]: https://www.unicode.org/versions/Unicode15.0.0/ch06.pdf#G12411
2023-02-06 07:24:42 -05:00
Dominik Schrempf eda69033eb
doc/haskell: nits
These are some suggested changes to the new documentation of Haskell in
the Nixpkgs manual. They cover sections until, but excluding, the
section "Available package versions". I am not an English native
speaker, so please correct me and savage these changes!

Also, please let me know if the suggestions are welcome, then I will
continue with the next chapter.
2023-01-18 07:17:46 +01:00