Skip to content

commercialhaskell/stackage-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

810e0f3 · Mar 18, 2025
Feb 3, 2025
Feb 27, 2025
Nov 14, 2020
Jan 8, 2024
Dec 14, 2014
Apr 17, 2024
Jan 31, 2025
Mar 18, 2025
Feb 2, 2025
Feb 3, 2025
Apr 30, 2019
Apr 5, 2020
Apr 30, 2019
Apr 30, 2019
Apr 30, 2019
Apr 30, 2019
Mar 28, 2024
Feb 2, 2025
Jan 31, 2025
Mar 18, 2025
Nov 15, 2020
Mar 18, 2025
Jun 25, 2023
Feb 27, 2025
Jan 31, 2025

Repository files navigation

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