From 67ad9faee525ff72ce7bf234ee9a6062c6b8f6d5 Mon Sep 17 00:00:00 2001 From: Andreas Schacker Date: Tue, 14 Apr 2026 13:37:39 +0200 Subject: [PATCH] Use `snapshot` instead of `resolver` --- src/Stackage/Database/Cron.hs | 2 +- stack.yaml | 2 +- templates/stackage-home.hamlet | 2 +- templates/stackage-home.lucius | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Stackage/Database/Cron.hs b/src/Stackage/Database/Cron.hs index 95f90e3..3a4ca5c 100644 --- a/src/Stackage/Database/Cron.hs +++ b/src/Stackage/Database/Cron.hs @@ -424,7 +424,7 @@ addPantryPackage snapId compiler isHidden flags (PantryPackage pcabal pTreeKey) --- | Download a list of available .html files from S3 bucket for a particular resolver and record +-- | Download a list of available .html files from S3 bucket for a particular snapshot and record -- in the database which modules have documentation available for them. checkForDocs :: SnapshotId -> SnapName -> ResourceT (RIO StackageCron) () checkForDocs snapshotId snapName = do diff --git a/stack.yaml b/stack.yaml index 96f3e9a..6146e19 100644 --- a/stack.yaml +++ b/stack.yaml @@ -1,7 +1,7 @@ # As this is built on NixOS stable, it has to stay on a GHC that exists on the # OS. # I.e. changes here need to be synced with changes to flake.nix and package.nix. -resolver: lts-24.26 +snapshot: lts-24.26 extra-deps: # WARNING: Changing the hoogle version causes stackage-server-cron to regenerate # Hoogle databases FOR EVERY SNAPSHOT, EVER. Usually, that's ok! But don't diff --git a/templates/stackage-home.hamlet b/templates/stackage-home.hamlet index ebdd075..d2ad3e5 100644 --- a/templates/stackage-home.hamlet +++ b/templates/stackage-home.hamlet @@ -8,7 +8,7 @@ $newline never View changes -

resolver: #{toPathPiece name} +

snapshot: #{toPathPiece name} ^{hoogleForm} diff --git a/templates/stackage-home.lucius b/templates/stackage-home.lucius index 2920990..c340487 100644 --- a/templates/stackage-home.lucius +++ b/templates/stackage-home.lucius @@ -79,7 +79,7 @@ p + ul { .keyword { color: #366354 } .url { color: #06537d } -.stack-resolver-yaml { +.stack-snapshot-yaml { font-size: 1.3em; font-weight: 600; }