Files
haskell.nix/test
Hamish Mackenzie 2576a948b5 Improve support for external Hackage repositories (#1370)
* Improve support for external Hackage repositories

This change builds #535. `repository` blocks in `cabal.project` parsed and `cabal` is used to automatically downloaded them.  Then `hackage-to-nix` is used to produce the nix required.

To make it work with restricted eval (on hydra for instance) we need to include a sha256 like this:

```
repository ghcjs-overlay
  url: https://input-output-hk.github.io/hackage-overlay-ghcjs
  secure: True
  root-keys:
  key-threshold: 0
  --sha256: sha256-EPlLYPmIGtxeahlOspRzwJv+60N5mqrNC2BY4jZKceE=
```

To find the correct `sha256` put in an invalid one and attempt a build.
2022-02-18 00:42:11 +13:00
..
2021-03-28 21:03:20 +13:00
2022-01-09 03:11:37 +13:00
2022-01-09 03:10:05 +13:00
2022-01-09 03:10:05 +13:00
2021-08-18 00:44:03 +12:00
2021-08-06 15:54:39 +12:00
2022-01-09 03:10:05 +13:00
2022-01-09 03:10:05 +13:00
2022-01-09 03:10:05 +13:00
2021-09-01 22:43:31 +12:00
2022-01-04 17:53:33 +13:00
2021-08-18 00:44:03 +12:00

Haskell infrastructure test cases

To build the test cases, run from the test directory:

nix-build --no-out-link default.nix

To run all tests (includes impure tests), use the script:

./tests.sh

Generated code

If you change the test Cabal files or need to regenerate the code with nix-tools, then see regen.nix. Run it like this:

$(nix-build --no-out-link regen.nix)