commercialhaskell / commercialhaskell/stackage-server

Add GHC resolver endpoint, ghc-x.y.z/cabal.config?

Open
#322 2 comments 0 reactions 0 assignees View on GitHub
type: enhancement
Dominant language
Haskell
Stars
108
Forks
31
PR merge metrics
No merged PRs in 30d

Description

In the Stack docs, it says we can use `resolver: ghc-x.y.z`.

> * LTS Haskell snapshots, e.g. resolver: lts-21.13
> * Stackage Nightly snapshots, e.g. resolver: nightly-2023-09-24
> * No snapshot, just use packages shipped with the compiler. For GHC this looks like resolver: ghc-9.6.2
>
> SOURCE: [resolver or snapshot](https://docs.haskellstack.org/en/stable/yaml_configuration/#resolver-or-snapshot)

I can get a `cabal.config` file for LTS and nightly resolvers. Could we provide a `cabal.config` for `ghc-x.y.z` resolvers too? If so then I'd expect it would show packages shipped with the compiler.

```
$ curl https://www.stackage.org/lts-21.22/cabal.config --silent | sed -n 1,8p
-- NOTE: Due to revisions, this file may not work. See:
-- https://github.com/fpco/stackage-server/issues/232

-- Stackage snapshot from: http://www.stackage.org/snapshot/lts-21.22
-- Please place this file next to your .cabal file as cabal.config
-- To only use tested packages, uncomment the following line:
-- remote-repo: stackage-lts-21.22:http://www.stackage.org/lts-21.22
with-compiler: ghc-9.4.8
```

```
$ curl https://www.stackage.org/nightly-2023-11-28/cabal.config --silent | sed -n 1,8p
-- NOTE: Due to revisions, this file may not work. See:
-- https://github.com/fpco/stackage-server/issues/232

-- Stackage snapshot from: http://www.stackage.org/snapshot/nightly-2023-11-28
-- Please place this file next to your .cabal file as cabal.config
-- To only use tested packages, uncomment the following line:
-- remote-repo: stackage-nightly-2023-11-28:http://www.stackage.org/nightly-2023-11-28
with-compiler: ghc-9.6.3
```

```
$ curl https://www.stackage.org/ghc-9.4.8/cabal.config --silent

...

Not Found


/ghc-9.4.8/cabal.config



...⏎
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.