Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 30 additions & 11 deletions .github/workflows/haskell-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
#
# For more information, see https://github.com/haskell-CI/haskell-ci
#
# version: 0.19.20250315
# version: 0.19.20250917
#
# REGENDATA ("0.19.20250315",["github","cabal.project"])
# REGENDATA ("0.19.20250917",["github","cabal.project"])
#
name: Haskell-CI
on:
Expand All @@ -20,6 +20,9 @@ on:
pull_request:
branches:
- master
merge_group:
branches:
- master
jobs:
linux:
name: Haskell-CI - Linux - ${{ matrix.compiler }}
Expand All @@ -32,14 +35,19 @@ jobs:
strategy:
matrix:
include:
- compiler: ghc-9.10.3
compilerKind: ghc
compilerVersion: 9.10.3
setup-method: ghcup
allow-failure: true
- compiler: ghc-9.8.4
compilerKind: ghc
compilerVersion: 9.8.4
setup-method: ghcup
allow-failure: true
- compiler: ghc-9.6.6
- compiler: ghc-9.6.7
compilerKind: ghc
compilerVersion: 9.6.6
compilerVersion: 9.6.7
setup-method: ghcup
allow-failure: true
- compiler: ghc-9.4.8
Expand Down Expand Up @@ -71,12 +79,12 @@ jobs:
- name: Install GHCup
run: |
mkdir -p "$HOME/.ghcup/bin"
curl -sL https://downloads.haskell.org/ghcup/0.1.40.0/x86_64-linux-ghcup-0.1.40.0 > "$HOME/.ghcup/bin/ghcup"
curl -sL https://downloads.haskell.org/ghcup/0.1.50.1/x86_64-linux-ghcup-0.1.50.1 > "$HOME/.ghcup/bin/ghcup"
chmod a+x "$HOME/.ghcup/bin/ghcup"
- name: Install cabal-install
run: |
"$HOME/.ghcup/bin/ghcup" install cabal 3.12.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
echo "CABAL=$HOME/.ghcup/bin/cabal-3.12.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
"$HOME/.ghcup/bin/ghcup" install cabal 3.16.0.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
echo "CABAL=$HOME/.ghcup/bin/cabal-3.16.0.0 -vnormal+nowrap" >> "$GITHUB_ENV"
- name: Install GHC (GHCup)
if: matrix.setup-method == 'ghcup'
run: |
Expand Down Expand Up @@ -152,7 +160,7 @@ jobs:
chmod a+x $HOME/.cabal/bin/cabal-plan
cabal-plan --version
- name: checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
path: source
- name: initial cabal.project for sdist
Expand All @@ -177,10 +185,16 @@ jobs:
touch cabal.project.local
echo "packages: ${PKGDIR_web_template}" >> cabal.project
echo "package web-template" >> cabal.project
echo " ghc-options: -Werror=missing-methods" >> cabal.project
echo " ghc-options: -Werror=missing-methods -Werror=missing-fields" >> cabal.project
if [ $((HCNUMVER >= 90400)) -ne 0 ] ; then echo "package web-template" >> cabal.project ; fi
if [ $((HCNUMVER >= 90400)) -ne 0 ] ; then echo " ghc-options: -Werror=unused-packages" >> cabal.project ; fi
if [ $((HCNUMVER >= 90000)) -ne 0 ] ; then echo "package web-template" >> cabal.project ; fi
if [ $((HCNUMVER >= 90000)) -ne 0 ] ; then echo " ghc-options: -Werror=incomplete-patterns -Werror=incomplete-uni-patterns" >> cabal.project ; fi
cat >> cabal.project <<EOF
allow-newer: openid-connect:text
allow-newer: openid-connect:mtl
allow-newer: scotty:bytestring
allow-newer: scotty:text
allow-newer: openid-connect:containers
allow-newer: openid-connect:lens

source-repository-package
type: git
Expand All @@ -198,6 +212,11 @@ jobs:
location: https://github.com/maksbotan/generic-override.git
tag: 79432eaa084705d6ac3f5b877287a74815a8eb71
subdir: generic-override-aeson

source-repository-package
type: git
location: https://github.com/pjones/openid-connect
tag: ea9ccbadaa69d60a579df0fff1667115831e3677
EOF
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any.$_ installed\n" unless /^(web-template)$/; }' >> cabal.project.local
cat cabal.project
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.1.3.17] - 2025-09-27
### Changed
- Update for GHC 9.6, 9.8, 9.10.

## [0.1.3.16] - 2025-03-27
### Changed
- `Permit` does not overwrite 403 response description of deeper layers.
Expand Down
8 changes: 7 additions & 1 deletion cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,10 @@ source-repository-package
subdir: generic-override-aeson
--sha256: 1qqb39lw71q7637bh2xpdcxrkyh9r6r55z2xmkgcgbwvx0wi5l9l

allow-newer: openid-connect:text, openid-connect:mtl
source-repository-package
type: git
location: https://github.com/pjones/openid-connect
tag: ea9ccbadaa69d60a579df0fff1667115831e3677

allow-newer: scotty:bytestring, scotty:text
allow-newer: openid-connect:containers, openid-connect:lens
3 changes: 2 additions & 1 deletion src/Web/Template/Servant/Auth.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ module Web.Template.Servant.Auth

import Control.Applicative ((<|>))
import Control.Lens (Iso', at, coerced, ix, (&), (.~), (<&>), (?~), (^..), (^?))
import Control.Monad.Except (runExceptT, unless)
import Control.Monad (unless)
import Control.Monad.Except (runExceptT)
import Control.Monad.IO.Class (MonadIO, liftIO)
import Data.IORef (readIORef, writeIORef)
import Data.Maybe (catMaybes)
Expand Down
13 changes: 3 additions & 10 deletions web-template.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: web-template
version: 0.1.3.16
version: 0.1.3.17
synopsis: Web template
description:
Web template includes:
Expand All @@ -24,8 +24,9 @@ tested-with:
|| ==9.0.2
|| ==9.2.8
|| ==9.4.8
|| ==9.6.6
|| ==9.6.7
|| ==9.8.4
|| ==9.10.3

library
hs-source-dirs: src
Expand All @@ -52,8 +53,6 @@ library
, cache
, clock
, cookie
, data-default
, fast-logger
, file-embed-lzma
, generic-override >= 0.2.0.0
, generic-override-aeson
Expand All @@ -80,8 +79,6 @@ library
, time
, vault
, wai
, wai-extra
, wai-logger
, warp
default-language: Haskell2010
default-extensions: AllowAmbiguousTypes
Expand Down Expand Up @@ -115,14 +112,10 @@ executable web-template-servant
ghc-options: -threaded -rtsopts
build-depends: base
, aeson
, network-uri
, openapi3
, servant-openapi3
, servant-server
, servant-swagger-ui
, text
, wai
, warp
, web-template
default-language: Haskell2010

Expand Down