summaryrefslogtreecommitdiff
path: root/doc/languages-frameworks/haskell.section.md (follow)
Commit message (Expand)AuthorAgeFilesLines
* doc/haskell: make krank ignore informational issue referencesternenseemann2025-09-261-2/+2
* haskellPackages.mkDerivation: enforce unix line endings in cabal files•••Automatically use sed(1) to remove DOS line endings from .cabal files. This is intended to work around Hackage producing revised cabal files with DOS line endings (https://github.com/haskell/hackage-server/issues/316). This frequently leads to - patches failing to apply. Unfortunately there is no way to apply a patch with Unix line endings to a file with DOS line endings with GNU patch(1). Only the following combinations are supported: file patch comment Unix Unix DOS DOS using --binary DOS Unix Haven't tested it, but I assume it works because patch(1) converts the file to Unix line endings implicitly (which can be disabled using --binary), but never the patch… - Test suites sometimes involve the .cabal file which can be affected by the line endings. This behavior is enabled by default to prevent cases where (unrevised) packages regress when they get a revision later. Of course, the behavior is a little nonsensical for non-Hackage packages, but it is probably rarely an issue in practice. When DOS line endings need to be preserved, the user can pass `dontConvertCabalFileToUnix = true`. Supersedes #279248. Resolves #206840. sternenseemann2025-09-261-0/+8
* ghc: 9.10.2 -> 9.10.3•••https://www.haskell.org/ghc/blog/20250910-ghc-9.10.3-released.html sternenseemann2025-09-121-1/+1
* Merge commit '50a00d8692c0253cc75a3dc0bfc46a88d98f1b8c' into haskell-updatesWolfgang Walther2025-09-071-1/+1
|\
| * haskell.compiler.ghc928: dropEmily2025-09-071-1/+1
* | Merge master into haskell-updatesRobert Hensing2025-08-281-11/+11
|\|
| * doc: fix typosBen Siraphob2025-08-271-11/+11
* | 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. sternenseemann2025-07-301-1/+1
|/
* treewide: run treefmt with mdcr/nixfmtWolfgang Walther2025-07-241-7/+5
* 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. Rebecca Turner2025-07-161-0/+4
* doc/haskell: Add GHC deprecation policymaralorn2025-06-011-0/+21
* haskellPackages: Cabal* 3.14.1.* -> 3.14.2.0sternenseemann2025-04-231-1/+1
* Merge c73deb76191a90e92ee415b8c37dce48d87cef7d into haskell-updatesnixpkgs-ci[bot]2025-04-171-63/+85
|\
| * doc: update Nix code snippets format•••Command: `mdcr --config doc/tests/mdcr-config.toml doc/` Pol Dellaiera2025-04-171-63/+85
* | haskell: document shellFor extraDependenciesThomas Miedema2025-03-231-0/+6
* | 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 Teo Camarasu2025-02-111-2/+2
* | 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). sternenseemann2025-01-081-1/+1
* | haskellPackages.Cabal_3_14_*: 3.14.1.0 -> 3.14.1.1sternenseemann2025-01-081-1/+1
|/
* haskellPackages: use Cabal 3.14.1.0 over 3.14.0.0sternenseemann2024-12-261-1/+1
* 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). sternenseemann2024-12-071-1/+1
* doc/haskell: update default GHC versionsternenseemann2024-11-031-2/+2
* `haskellPackages.mkDerivation`: Add support for `sourceRoot` and `setSourceRo...maralorn2024-11-011-0/+4
|\
| * 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. Rebecca Turner2024-10-251-0/+4
* | haskellPackages.Cabal_3_6_3_0: remove at 3.6.3.0sternenseemann2024-10-171-1/+1
|/
* pkgs.haskell.lib: Add disableParallelBuilding functionRodney Lorrimar2024-09-231-0/+3
* 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>Valentin Gagarin2024-06-281-75/+10
* 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. Robert Hensing2024-06-131-2/+4
* 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> Rebecca Turner2024-05-271-8/+53
* 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`). Armando Ramirez2024-05-091-7/+65
* haskellPackages: add dontCheckIf helper•••Using this helper will prevent introducing problematic doCheck = condition overrides, which accidentally re-enable previously disabled tests. Wolfgang Walther2024-02-261-0/+5
* Merge master into haskell-updatesgithub-actions[bot]2024-02-011-26/+30
|\
| * 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. sternenseemann2024-01-311-26/+30
* | Merge master into haskell-updatesgithub-actions[bot]2024-01-261-21/+24
|\|
| * haskell.compiler.ghc8102Binary: remove at 8.10.2•••Since 46f14d30aa6a57dfdc008901b2d58c54365a0290, it no longer has any users in nixpkgs. sternenseemann2024-01-251-21/+24
* | haskellPackages.ghc: 9.6.3 -> 9.6.4sternenseemann2024-01-221-1/+1
* | haskellPackages.ghc: 9.4.8 -> 9.6.3sternenseemann2024-01-071-1/+1
|/
* 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)Arnout Engelen2023-11-091-2/+2
* Merge master into haskell-updatesgithub-actions[bot]2023-09-291-2/+2
|\
| * treewide: Fix typosPeder Bergebakken Sundt2023-09-281-2/+2
* | haskell-docs: Fix typo in function namemaralorn2023-09-201-1/+1
|/
* doc/../haskell.section.md: Make a bit clearer and more beginner friendlymaralorn2023-07-151-24/+32
* 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. sternenseemann2023-06-301-0/+118
* doc/haskell: document {enable,disable}*Profiling functionssternenseemann2023-06-301-0/+12
* haskellPackages: Use separate bin output for multiple packagesmaralorn2023-06-111-1/+1
* doc/language-frameworks/haskell: fix argument order of setBuildTargets (#236252)Julian Arni2023-06-061-1/+1
* Document incremental build support for HaskellRebecca Turner2023-05-251-0/+71
* haskell.compiler.ghc94: 9.4.4 -> 9.4.5•••https://www.haskell.org/ghc/blog/20230418-ghc-9.4.5-released.html sternenseemann2023-04-221-1/+1
* 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). pennae2023-03-271-10/+10
* 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… sternenseemann2023-03-011-10/+14
* doc/haskell: Add clarifications in section about versionsmaralorn2023-02-181-6/+13