about summary refs log tree commit diff
path: root/pkgs/test/haskell
AgeCommit message (Collapse)AuthorFilesLines
2024-08-25tests.haskell.cabalSdist: Prevent rebuilds when Nix files changeSilvan Mosberger1-4/+15
The generated file sets its own directory as the source, including the generated file itself, which causes rebuilds when that file is reformatted. We can avoid this by overriding the source with a filtered version and using that throughout the tests. See https://github.com/NixOS/nixpkgs/pull/320572 for more context
2024-06-26doc: Explain cabalSdist testRobert Hensing2-1/+6
2024-06-21Revert "tests.haskell.cabalSdist.localFromCabalSdist: prevent unnecessary ↵sternenseemann1-8/+1
rebuilds" This reverts commit 81c06bc6094a3a637c90e1ad57616caf2f137a07. Reason for revert: This change breaks the `tests.haskell.cabalSdist.assumptionLocalHasDirectReference` test which relies on checking for the test source store path in the resulting derivation files. 81c06bc6094a3a637c90e1ad57616caf2f137a07 did not account for this in the change (though it should be possible).
2024-06-17tests.haskell.setBuildTarget: prevent unnecessary rebuildsPhilip Taron1-1/+9
2024-06-17tests.haskell.cabalSdist.localFromCabalSdist: prevent unnecessary rebuildsPhilip Taron1-1/+8
2024-01-15tests.haskell.shellFor: change from using linear to cerealDennis Gosnell1-4/+4
The current version of linear (1.22) has incorrect constraints in its cabal file (which has been corrected in a revision), so it is causing this test to fail. This commit just switches to another arbitrary package (cereal) for the tests.
2024-01-01haskellPackages: Fix eval errorsmaralorn1-2/+2
2024-01-01haskellPackages: Fix eval errorsmaralorn1-1/+1
2023-10-08tests.haskell.upstreamStackHpackVersion: update breakfor stack-2.13.1Dennis Gosnell1-2/+3
The tarball that contains the statically-linked stack package has changed paths. See the release notes for more details: https://github.com/commercialhaskell/stack/releases/tag/v2.13.1
2023-07-26Merge master into haskell-updatesgithub-actions[bot]2-27/+0
2023-07-22writers: split out the testszimbatm2-27/+0
Make it easier to run and debug individual tests.
2023-07-16tests.haskell.upstreamStackHpackVersion: initDennis Gosnell2-0/+152
This tests that the upstream `stack` release uses the same version of `hpack` as the `stack` in Nixpkgs.
2023-07-04tests.haskell.shellFor: change package used in extraDependencies testDennis Gosnell1-6/+16
This commit does the following two things: 1. Changes the Haskell package used in the extraDependencies test from releaser to conduit. The reason for this is that conduit is more of a "core" package in Haskell, and it is more likely to always be working. (If conduit is not compiling, then large chunks of Hackage won't be working.) 2. Tighten up the GHCi test to actually use the package from extraDependencies. It appears that GHCi can fail to import the package from extraDependencies, and that doesn't cause GHCi to return an error code, which means the test isn't actually testing anything. This new change makes it so that if the package from extraDependencies is actually not included for some reason, then this shellFor test should fail.
2023-05-30tests.haskell.incremental: change package used from turtle to temporaryDennis Gosnell1-9/+9
With a recent hackage update, turtle stopped compiling on ghc94. This commit changes the tests.haskell.incremental test to use the temporary package instead of turtle.
2023-05-25tests.haskell.incremental: initRebecca Turner2-0/+36
2022-05-24pkgs.tests.haskell.cabalSdist: Avoid IFDRobert Hensing2-1/+13
2022-05-23haskellPackages: Add buildFromCabalSdist (faster, tested)Robert Hensing5-0/+51
2022-03-15haskellPackages.shellFor: Add extraDependenciesRobert Hensing1-0/+11
An example use case is when you have Haskell scripts that use libraries that don't occur in your packages' dependencies.
2021-11-07haskell: switch from haskell.lib to haskell.lib.composeEllie Hermaszewska2-4/+4
2021-07-13tests.haskell: set meta.platformssternenseemann4-4/+20
This allows packagePlatforms to pick up on the overall supported platforms and schedule builds on Hydra for more than the evaluation platform (usually x86_64-linux).
2021-07-13tests.writers: also expose path via passthrusternenseemann1-0/+2
2021-07-13top-level/release-haskell.nix: test writers on all platformssternenseemann2-0/+21
Since the rust writer doesn't seem to get fixed on darwin, we'll just wrap the haskell writer test in our own derivation (which is possible since tests.writers exposes a bunch of internals via passthru) and expose it via tests.haskell which are already in mergeable. Finally a way to test the (hopefully) working haskell writer on darwin again!
2021-05-02tests.haskell-setBuildTarget: inline haskell package def to avoid IFD(cdep)illabout1-5/+17
2021-05-02Add haskell.lib.setBuiltTarget, and support non library compiling of a ↵Isaac Shapira6-0/+53
single target
2021-05-01tests.haskell.shellFor: use writeText instead of toFilesternenseemann1-2/+2
2021-05-01tests.haskell.shellFor: replace database-id-class with linearsternenseemann1-4/+4
Contrary to database-id-class, linear is part of stackage and actively maintained, so the test is less likely to fail due to version constraint issues as it is currently.
2021-05-01tests.haskell*: move into tests.haskell setsternenseemann3-0/+56
This will make it easier to add all haskell related tests to the haskell hydra jobset without updating a list of tests in two places.