Server for stable, curated Haskell package sets
Go to file
Jens Petersen f4f40bfcfa build with Cabal-3.12 to try to unbreak the cron job
stackage-server-cron: Unable to parse cabal file from package webdriver-precore-0.2.0.1@sha256:2c644f12cb915bd6491da97af448bb74270cdcee8260f4a39f11c7594b6153c4,7407 (from Hackage)
- 0:0: Unsupported cabal-version 3.12. See https://github.com/haskell/cabal/issues/4899.  <= error from Cabal
The cabal file uses the cabal specification version 3.12, but we only support up to version 3.8.
Recommended action: upgrade your build tool (e.g., `stack upgrade`).

The last two lines are from pantry
2026-01-23 15:24:08 +08:00
.github/workflows chore: bump GH action versions 2026-01-23 14:08:03 +08:00
app Document more stackage-server-cron steps 2025-02-27 15:05:44 +02:00
bench Infer pg pool size from number of caps by default 2020-11-15 00:21:21 +03:00
config Split JSON API out of /snapshots 2025-07-10 09:52:25 +03:00
design New homepage and new top nav (#52) 2014-12-14 20:18:40 +01:00
docker Merge pull request #318 from juhp/ubuntu20 2024-04-17 09:32:53 +03:00
nix Add flake 2025-01-31 10:36:54 +02:00
src Split JSON API out of /snapshots 2025-07-10 09:52:25 +03:00
static replace remaining references to github.com/fpco/ 2025-02-02 23:15:31 +08:00
templates Split JSON API out of /snapshots 2025-07-10 09:52:25 +03:00
.dir-locals.el Integration with Pantry and usage of new stackage-snapshots: 2019-04-30 17:10:33 +03:00
.dockerignore Include Git history 2020-04-05 18:29:46 +03:00
.ghci Integration with Pantry and usage of new stackage-snapshots: 2019-04-30 17:10:33 +03:00
.gitignore Integration with Pantry and usage of new stackage-snapshots: 2019-04-30 17:10:33 +03:00
.hindent.yaml Integration with Pantry and usage of new stackage-snapshots: 2019-04-30 17:10:33 +03:00
.stylish-haskell.yaml Integration with Pantry and usage of new stackage-snapshots: 2019-04-30 17:10:33 +03:00
flake.lock Add flake 2025-01-31 10:36:54 +02:00
flake.nix Add a nix shell 2025-03-18 13:59:53 +02:00
indices Add a migration for index creation on stanpshot creation date 2020-11-15 03:20:41 +03:00
LICENSE Transfer attribution to Haskell Foundation 2024-03-28 15:04:16 +02:00
package.nix Nix integration cleanup 2025-11-20 20:12:21 +02:00
package.yaml Default rtsopts tweaks 2025-11-20 19:16:01 +02:00
README.md replace remaining references to github.com/fpco/ 2025-02-02 23:15:31 +08:00
shell.nix Nix integration cleanup 2025-11-20 20:12:21 +02:00
stack.yaml build with Cabal-3.12 to try to unbreak the cron job 2026-01-23 15:24:08 +08:00
stack.yaml.lock build with Cabal-3.12 to try to unbreak the cron job 2026-01-23 15:24:08 +08:00

stackage-server

Server for stable, curated Haskell package sets

This repo is part of the Stackage project, and the live server can be viewed at https://www.stackage.org.

Building locally

Build locally by passing the dev flag to it:

$ stack build . --flag stackage-server:dev

Simple testing with sqlite:

To test the UI without real data, just run:

$ yesod devel

(install the yesod executable from yesod-bin).

Testing with postgresql

Now, initially you need to run the cron job to create and populate the database:

$ export PGSTRING=postgresql://postgres:password@localhost:5432/stackage
$ stack exec stackage-server-cron

Note that you need to modify the PGSTRING environment variable according to your actual database configuration. Also, you need to create an empty database before running the cron job. Note that it takes quite some time for it to load your database.

After this, run the stackage server:

$ export PGSTRING=postgresql://postgres:password@localhost:5432/stackage
$ stack exec stackage-server