From 3d65a8168c80fcf36b8f41b290f915f5b60ac11f Mon Sep 17 00:00:00 2001 From: Matthijs Blom <19817960+MatthijsBlom@users.noreply.github.com> Date: Sun, 30 Jul 2023 14:12:02 +0200 Subject: [PATCH 1/2] Remove outdated warning --- docs/TESTS.md | 8 -------- 1 file changed, 8 deletions(-) diff --git a/docs/TESTS.md b/docs/TESTS.md index 388e4d1fa..2947ab73a 100644 --- a/docs/TESTS.md +++ b/docs/TESTS.md @@ -84,14 +84,6 @@ library: - bar ``` -Then, when submitting your solution, remember to submit `package.yaml` as -well (otherwise the solution will fail). From the project's top-level -directory run: - -```bash -exercism submit package.yaml src/ModuleName.hs -``` - ### Running *GHCi* If you want to play with your solution in GHCi, just run the command: From d07c09cd39f0628dfbece1738352b8612d14cf9f Mon Sep 17 00:00:00 2001 From: Matthijs Blom <19817960+MatthijsBlom@users.noreply.github.com> Date: Sun, 30 Jul 2023 14:14:00 +0200 Subject: [PATCH 2/2] Document available packages --- docs/TESTS.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/TESTS.md b/docs/TESTS.md index 2947ab73a..97d1feb2c 100644 --- a/docs/TESTS.md +++ b/docs/TESTS.md @@ -84,6 +84,26 @@ library: - bar ``` +While working locally, you can use any packages you like. +The online test runner, however, has access to only a limited set of packages. +The available packages are + +- the ones that come pre-installed with GHC (most notably `base`, `containers`, `array`, `time`, `mtl`, `deepseq`, `exceptions`, `bytestring`), plus +- those pre-built for the test runner, listed at [haskell-test-runner/pre-compiled/package.yaml](https://github.com/exercism/haskell-test-runner/blob/main/pre-compiled/package.yaml). + +If you submit a solution that uses a package that is not available, then the test runner will run into its lack of internet access and produce an error that looks like this: + +```text +Cabal file info not found for unavailable-package-1.0@..., updating +Selected mirror https://hackage.haskell.org/ +Downloading root +HttpExceptionRequest Request { + host = "hackage.haskell.org" + ... +} + (ConnectionFailure ...) +``` + ### Running *GHCi* If you want to play with your solution in GHCi, just run the command: