Skip to content

Commit fa1d82c

Browse files
authored
Merge pull request #1272 from haskell/gb/master-to-central-dec-23
master to central dec 23
2 parents 5c3b173 + 44a3b1c commit fa1d82c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+2189
-699
lines changed

.github/workflows/cabal.off

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
pull_request:
6+
branches:
7+
- master
8+
name: Cabal
9+
jobs:
10+
build:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
ghc: ['9.8', '9.6', '9.4', '9.2']
16+
cabal: ['latest']
17+
os: [ubuntu-latest]
18+
name: Cabal with GHC ${{ matrix.ghc }}
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Setup Haskell
22+
uses: haskell-actions/setup@v2
23+
with:
24+
ghc-version: ${{ matrix.ghc }}
25+
cabal-version: ${{ matrix.cabal }}
26+
- name: Install dependencies
27+
run: sudo apt install -y libbrotli-dev libgd-dev
28+
- name: Build
29+
run: cabal build all --enable-tests
30+
- name: Test
31+
run: cabal test all --enable-tests
32+
- name: Haddock
33+
run: cabal haddock all
34+
35+
## Andreas, 2023-08-03: mtl-2.3 is covered by GHC 9.6
36+
#
37+
# build_with_mtl_2_3:
38+
# runs-on: ${{ matrix.os }}
39+
# strategy:
40+
# fail-fast: false
41+
# matrix:
42+
# ghc: ['9.4.4']
43+
# cabal: ['3.8.1.0']
44+
# os: [ubuntu-latest]
45+
# name: Cabal with GHC ${{ matrix.ghc }} and mtl >= 2.3.1
46+
# steps:
47+
# - uses: actions/checkout@v4
48+
# - name: Setup Haskell
49+
# uses: haskell/actions/setup@v2
50+
# with:
51+
# ghc-version: ${{ matrix.ghc }}
52+
# cabal-version: ${{ matrix.cabal }}
53+
# - name: Install dependencies
54+
# run: sudo apt install -y libbrotli-dev libgd-dev
55+
# - name: Build dependencies with mtl >= 2.3.1
56+
# # 2022-12-30: 'transformers >= 0.6' is needed because of happstack-server
57+
# run: cabal build all --disable-tests --dependencies-only -O0 --constraint 'mtl >= 2.3.1' --constraint 'transformers >= 0.6' --allow-newer='Cabal:mtl' --allow-newer='Cabal:transformers'
58+
# - name: Build with mtl >= 2.3.1
59+
# # 2022-12-30: 'transformers >= 0.6' is needed because of happstack-server
60+
# run: cabal build all --disable-tests -O0 --constraint 'mtl >= 2.3.1' --constraint 'transformers >= 0.6' --allow-newer='Cabal:mtl' --allow-newer='Cabal:transformers'

.github/workflows/cabal.yml

Lines changed: 0 additions & 59 deletions
This file was deleted.

.github/workflows/haskell-ci.yml

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,20 @@
66
#
77
# haskell-ci regenerate
88
#
9-
# For more information, see https://github.com/haskell-CI/haskell-ci
9+
# For more information, see https://github.com/andreasabel/haskell-ci
1010
#
11-
# version: 0.15.20230321
11+
# version: 0.17.20231012
1212
#
13-
# REGENDATA ("0.15.20230321",["github","hackage-server.cabal"])
13+
# REGENDATA ("0.17.20231012",["github","hackage-server.cabal"])
1414
#
1515
name: Haskell-CI
1616
on:
1717
push:
1818
branches:
1919
- master
20-
- ci*
2120
pull_request:
2221
branches:
2322
- master
24-
- ci*
2523
jobs:
2624
linux:
2725
name: Haskell-CI - Linux - ${{ matrix.compiler }}
@@ -34,19 +32,24 @@ jobs:
3432
strategy:
3533
matrix:
3634
include:
37-
- compiler: ghc-9.6.1
35+
- compiler: ghc-9.8.1
3836
compilerKind: ghc
39-
compilerVersion: 9.6.1
37+
compilerVersion: 9.8.1
4038
setup-method: ghcup
4139
allow-failure: false
42-
- compiler: ghc-9.4.4
40+
- compiler: ghc-9.6.3
4341
compilerKind: ghc
44-
compilerVersion: 9.4.4
42+
compilerVersion: 9.6.3
4543
setup-method: ghcup
4644
allow-failure: false
47-
- compiler: ghc-9.2.7
45+
- compiler: ghc-9.4.7
4846
compilerKind: ghc
49-
compilerVersion: 9.2.7
47+
compilerVersion: 9.4.7
48+
setup-method: ghcup
49+
allow-failure: false
50+
- compiler: ghc-9.2.8
51+
compilerKind: ghc
52+
compilerVersion: 9.2.8
5053
setup-method: ghcup
5154
allow-failure: false
5255
- compiler: ghc-9.0.2
@@ -71,8 +74,9 @@ jobs:
7174
apt-get update
7275
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
7376
mkdir -p "$HOME/.ghcup/bin"
74-
curl -sL https://downloads.haskell.org/ghcup/0.1.19.2/x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
77+
curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
7578
chmod a+x "$HOME/.ghcup/bin/ghcup"
79+
"$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml;
7680
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
7781
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
7882
apt-get update
@@ -88,10 +92,12 @@ jobs:
8892
echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
8993
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
9094
HCDIR=/opt/$HCKIND/$HCVER
91-
HC=$HOME/.ghcup/bin/$HCKIND-$HCVER
95+
HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
96+
HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
97+
HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
9298
echo "HC=$HC" >> "$GITHUB_ENV"
93-
echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
94-
echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
99+
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
100+
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
95101
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
96102
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
97103
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
@@ -142,14 +148,14 @@ jobs:
142148
- name: install cabal-plan
143149
run: |
144150
mkdir -p $HOME/.cabal/bin
145-
curl -sL https://github.com/haskell-hvr/cabal-plan/releases/download/v0.6.2.0/cabal-plan-0.6.2.0-x86_64-linux.xz > cabal-plan.xz
146-
echo 'de73600b1836d3f55e32d80385acc055fd97f60eaa0ab68a755302685f5d81bc cabal-plan.xz' | sha256sum -c -
151+
curl -sL https://github.com/haskell-hvr/cabal-plan/releases/download/v0.7.3.0/cabal-plan-0.7.3.0-x86_64-linux.xz > cabal-plan.xz
152+
echo 'f62ccb2971567a5f638f2005ad3173dba14693a45154c1508645c52289714cb2 cabal-plan.xz' | sha256sum -c -
147153
xz -d < cabal-plan.xz > $HOME/.cabal/bin/cabal-plan
148154
rm -f cabal-plan.xz
149155
chmod a+x $HOME/.cabal/bin/cabal-plan
150156
cabal-plan --version
151157
- name: checkout
152-
uses: actions/checkout@v3
158+
uses: actions/checkout@v4
153159
with:
154160
path: source
155161
- name: initial cabal.project for sdist

.github/workflows/nix-flake.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ on:
99
jobs:
1010
nix:
1111
strategy:
12-
fail-fast: true
12+
fail-fast: false
1313
matrix:
1414
os:
1515
- ubuntu-latest
16-
# - macos-latest
16+
- macos-latest
1717
name: Nix on ${{ matrix.os }}
1818
runs-on: ${{ matrix.os }}
1919
steps:
20-
- uses: actions/checkout@v3.1.0
21-
- uses: cachix/install-nix-action@v21
20+
- uses: actions/checkout@v4
21+
- uses: cachix/install-nix-action@v23
2222
with:
2323
extra_nix_config: |
2424
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hackage-server.cachix.org-1:iw0iRh6+gsFIrxROFaAt5gKNgIHejKjIfyRdbpPYevY=
@@ -29,4 +29,6 @@ jobs:
2929
name: hackage-server
3030
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
3131
- run: nix build
32-
# - run: nix flake check
32+
33+
- continue-on-error: false
34+
run: nix flake check

cabal.haskell-ci

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
branches: master ci*
1+
branches: master
22

33
installed: +all -Cabal -Cabal-syntax -text -parsec -process
44

cabal.project

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
packages:
2+
.
3+
4+
-- This comment moved below "packages" to fix parsing of this file
5+
-- by flake.nix
6+
17
-- This project config requires cabal 2.4 or later
28

39
-- If in doubt, use GHC 8.8 to build hackage-server; see
@@ -6,8 +12,7 @@
612
--
713
-- with-compiler: ghc-8.8
814

9-
packages: .
10-
15+
1116
allow-newer: rss:time, rss:base
1217

1318
-- Andreas, 2022-10-28: `Cabal-3.8.1.0` wants `process >= 1.6.14`

datafiles/static/browse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ const replaceRows = (response) => {
133133
tr.appendChild(createSimpleText(row.description));
134134
tr.appendChild(createTags(row.tags));
135135
tr.appendChild(createLastUpload(row.lastUpload));
136-
tr.appendChild(createSimpleText(row.lastVersion));
136+
tr.appendChild(createSimpleText(row.referenceVersion));
137137
tr.appendChild(createMaintainers(row.maintainers));
138138
l.appendChild(tr);
139139
}

datafiles/templates/Html/browse.html.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@
212212
<th id=arrow-description><a href="javascript: sort('description')">Description</a></th>
213213
<th id=arrow-tags><a href="javascript: sort('tags')">Tags</a></th>
214214
<th id=arrow-lastUpload><a href="javascript: sort('lastUpload')">Last U/L</a></th>
215-
<th id=arrow-lastVersion><a href="javascript: sort('lastVersion')">Last Version</a></th>
215+
<th id=arrow-referenceVersion><a href="javascript: sort('referenceVersion')">Reference Version</a></th>
216216
<th id=arrow-maintainers><a href="javascript: sort('maintainers')">Maintainers</a></th>
217217
</tr>
218218
</thead>

datafiles/templates/Html/candidate-page.html.st

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
<meta name="viewport" content="width=device-width, initial-scale=1"/>
1515
<link rel="search" href="/packages/opensearch.xml" type="application/opensearchdescription+xml" title="Hackage"/>
1616
<link rel="canonical" href="/package/$package.name$"/>
17+
<script src="/static/jquery.min.js"></script>
18+
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js" type="text/javascript"></script>
1719
</head>
1820

1921
<body>

datafiles/templates/Html/revisions.html.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ refer to the
2828
</tr>
2929
$revisions:{revision|
3030
<tr>
31-
<td valign="top"><a href="/package/$pkgid$/revision/$revision.number$.cabal">-r$revision.number$</a></td>
31+
<td valign="top"><a href="/package/$pkgid$/revision/$revision.number$.cabal">-r$revision.number$</a> (<a href="/package/$pkgid$/revision/$pkgid$-$revision.number$.cabal">$pkgid$-r$revision.number$</a>)</td>
3232
<td valign="top">$revision.htmltime$</td>
3333
<td valign="top"><a href="/user/$revision.user$">$revision.user$</td>
3434
<td valign="top">$revision.sha256$</th>

0 commit comments

Comments
 (0)