1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00
Commit graph

65 commits

Author SHA1 Message Date
Martin Weinelt 46b1474255 Reapply "haskellPackages: update stackage and hackage" (#354547)
This reverts commit 7701a9e6c6, reversing
changes made to 8991dc8e9d.

Restore haskell-updates on staging-next to save resources on hydra.
2024-11-08 18:42:24 +01:00
Vladimír Čunát fe6d94b8f9
Revert "haskellPackages: update stackage and hackage" 2024-11-08 18:36:29 +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
maralorn fecbf169e2 haskell/docs: Fix a link 2023-01-15 22:15:40 +01:00
maralorn 26ef8978d8 haskell/docs: New sections about available versions and hls + Various small improvements
Co-authored-by: sternenseemann <sternenseemann@systemli.org>
2023-01-15 20:07:02 +01:00
sternenseemann 0a66465b22 doc/haskell: (re-)init haskell manual section
This restarts a Haskell section in the nixpkgs manual. The content
presented here has been written from scratch, although some parts of it
take inspiration from the existing haskell4nix documentation.

It is by no means complete, the idea is mostly to get the ball rolling
in some way. Upcoming tasks are hinted at in the comments in the
documentation file.
2023-01-14 22:33:35 +01:00
Ryan Mulligan b8344f9e5c doc: explicit Markdown anchors for top-level headings; remove metadata
I used the existing anchors generated by Docbook, so the anchor part
should be a no-op. This could be useful depending on the
infrastructure we choose to use, and it is better to be explicit than
rely on Docbook's id generating algorithms.

I got rid of the metadata segments of the Markdown files, because they
are outdated, inaccurate, and could make people less willing to change
them without speaking with the author.
2021-01-01 10:02:57 -08:00
Peter Simons 5fe0939d18 The Haskell documentation has moved to <https://haskell4nix.readthedocs.io/>.
That site is generated automatically from the set of text files found at
<https://github.com/NixOS/cabal2nix/tree/master/doc>.
2020-10-23 21:00:26 +02:00
maralorn 0756b8a7bf
haskell-language-server: Init wrapper for multiple ghc versions at 0.5.0 (#99519)
* haskell-language-server: Init wrapper for multiple ghc versions at 0.5.0

* Fix closure size

* docs: Add hls section to Haskell part of manual
2020-10-10 16:01:57 +02:00
Gabor Greif dec283b463 ghcHEAD: 20200403 -> 20200505 2020-05-08 21:11:46 +02:00
Gabor Greif a634bd0fd7 ghc: drop 8.8.1 2020-04-24 21:48:28 +02:00
Gabor Greif 7932fb22cb ghcHEAD: bump to 8.11.20200403 (#84217)
* ghcHEAD: bump to 8.11.20200403

* ghcHead: reduce diff vs. 8.10.1

dontAddExtraLibs was removed by accident (IMO) in ea19a8ed1e

* ghcHEAD: add ability to use system libffi

- enable nixpkgs' libffi
- minimise diffs against 8.10.1
- remove patching

* remove configure warning about --with-curses-includes

configure: WARNING: unrecognized options: --with-curses-includes
2020-04-17 20:50:48 +02:00
Leif Metcalf c3f8e598ed
Update git clone command example 2020-03-25 15:48:25 +09:00
Gabor Greif c8554c0574 ghc: add 8.8.3
https://mail.haskell.org/pipermail/ghc-devs/2020-February/018643.html
2020-02-28 20:42:25 +01:00
Peter Simons 5bcd07a07d haskellPackages: update default compiler from ghc-8.6.5 to 8.8.2 (LTS-15.x) 2020-02-28 20:31:25 +01:00
Joachim Breitner 262219be21 nixpkgs manual: Update Haskell versions
and leave a comment in all-packages.nix that the docs should be updated
2020-01-08 09:15:20 +01:00
Simon Jakobi d487d65a80
A few updates for the Haskell guide 2019-11-21 02:58:24 +01:00
Silvan Mosberger 27e7b9a31d
docs/haskell: Mention buildStackProject needs a disabled sandbox 2019-11-14 01:32:07 +01:00
Frederik Rietdijk 95dfbe2d63 doc: organize chapters into parts, and reduce toc depth
Reorganize the chapters into parts and reduce the TOC depth to make the
TOC useful again. The top-level TOC is very brief, but that is fine
because every part will have its own TOC.

Section titles of languages/frameworks are also simplified to just
the name of the language/framework.
2019-10-20 13:35:04 +02:00