Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
ab50394
Publish on versions with just two numbers.
IamfromSpace Dec 19, 2023
f5c229c
MessageGroupId isn't included for non FIFO queues
kokobd Feb 25, 2026
d817d6e
fix: handle null header values
Tristano8 Jun 22, 2026
fdff117
chore: update changelog
Tristano8 Jun 22, 2026
6e0b805
Bump Github Action action/cache version
IamfromSpace Aug 5, 2026
00cd168
Merge pull request #145 from Nike-Inc/maint/update-action-cache-version
IamfromSpace Aug 5, 2026
a01c4f8
Fix cache key error for Github Action Cabal builds
IamfromSpace Aug 5, 2026
d22d813
Merge pull request #146 from Nike-Inc/maint/fix-cabal-build-cache-key
IamfromSpace Aug 5, 2026
129d330
Remove unnecessary cabal v3 install step.
IamfromSpace Aug 5, 2026
679e6af
Merge pull request #147 from Nike-Inc/maint/simplify-cabal-build
IamfromSpace Aug 5, 2026
15360f5
Allow hedgehog 1.7
IamfromSpace Aug 13, 2024
cf02b36
Merge pull request #138 from Nike-Inc/maint/extend-hedgehog-bounds
IamfromSpace Aug 5, 2026
7c7399c
Add workflow_dispatch trigger to allow manually running CI on any branch
IamfromSpace Aug 8, 2026
f75a54f
Merge pull request #148 from Nike-Inc/maint/enable-workflow-dispatch
IamfromSpace Aug 8, 2026
15255c5
Add Nix to CI with currently supported versions and unstable checked.
IamfromSpace Aug 9, 2026
02a096e
Intentionally let stack LTS snapshots float
IamfromSpace Aug 9, 2026
39be81d
Merge pull request #149 from Nike-Inc/maint/add-nix-to-ci
IamfromSpace Aug 9, 2026
ad08cc0
Merge pull request #150 from Nike-Inc/maint/unlock-stack-snapshots
IamfromSpace Aug 9, 2026
b799d53
Modify the hpack generated version number, to eliminate conflicts wit…
IamfromSpace Aug 9, 2026
4dfad7b
Merge pull request #151 from Nike-Inc/maint/fake-hpack-version-for-ea…
IamfromSpace Aug 9, 2026
6cae437
Merge pull request #139 from bellroy/sqs-message-group-id-upstream
IamfromSpace Aug 13, 2026
43445eb
Merge pull request #144 from bellroy/fix/support-null-headers
IamfromSpace Aug 13, 2026
f36cae4
Support newer releases of `hedgehog` and drop aeson migration flag
JackKelly-Bellroy Apr 14, 2026
a1e4323
Merge pull request #141 from bellroy/version-updates
IamfromSpace Aug 13, 2026
6e01501
Add Stack LTS 22, 23, and 24
IamfromSpace Aug 10, 2026
81c75ba
Add more recent GHC versions to CI.
IamfromSpace Aug 10, 2026
9d239dc
Merge pull request #153 from Nike-Inc/maint/add-additional-versions-t…
IamfromSpace Aug 13, 2026
e6ca079
Merge pull request #135 from Nike-Inc/fix/publish-on-two-number-versions
IamfromSpace Aug 13, 2026
b10f7b3
Update older versions of cabal that no longer work.
IamfromSpace Oct 13, 2026
201958f
Use older version of Ubuntu for older versions of GHC.
IamfromSpace Oct 28, 2026
f3201cb
Disable fail-fast for cabal builds, since many errors aren't actually…
IamfromSpace Oct 28, 2026
2ca7e51
Merge pull request #154 from Nike-Inc/maint/retire-older-versions-of-…
IamfromSpace Oct 28, 2026
02a1612
Disable fail fast for nix builds.
IamfromSpace Oct 28, 2026
aaa649e
Disable fail fast for stack builds.
IamfromSpace Oct 28, 2026
7db8328
Merge pull request #155 from Nike-Inc/maint/disable-fail-fast-for-nix…
IamfromSpace Oct 28, 2026
633afb5
Merge pull request #156 from Nike-Inc/maint/disable-fail-fast-for-sta…
IamfromSpace Oct 28, 2026
02f4df8
Merge Nike-Inc/hal master into bellroy/hal master
Tristano8 Oct 29, 2026
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
46 changes: 30 additions & 16 deletions .github/workflows/haskell_cabal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,46 +7,60 @@ on:
pull_request:
branches:
- master
workflow_dispatch:

jobs:
build:
strategy:
fail-fast: false
matrix:
plan:
- ghc-version: '8.4.4'
cabal-version: '2.4'
cabal-version: '3.10'
ubuntu-version: '24.04'
- ghc-version: '8.8'
cabal-version: '3.0'
cabal-version: '3.10'
ubuntu-version: '24.04'
- ghc-version: '8.10.7'
cabal-version: '3.0'
cabal-version: '3.10'
ubuntu-version: '24.04'
- ghc-version: '9.0.2'
cabal-version: '3.0'
cabal-version: '3.10'
ubuntu-version: '24.04'
- ghc-version: '9.2.4'
cabal-version: '3.0'
cabal-version: '3.10'
ubuntu-version: '24.04'
- ghc-version: '9.4.2'
cabal-version: '3.0'
runs-on: ubuntu-latest
cabal-version: '3.10'
ubuntu-version: '24.04'
- ghc-version: '9.6.7'
cabal-version: '3.10'
ubuntu-version: 'latest'
- ghc-version: '9.8.4'
cabal-version: '3.12'
ubuntu-version: 'latest'
- ghc-version: '9.10.3'
cabal-version: '3.14'
ubuntu-version: 'latest'
runs-on: 'ubuntu-${{ matrix.plan.ubuntu-version }}'
steps:
- uses: actions/checkout@v2
- name: Cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
~/.cabal/packages
~/.cabal/store
dist-newstyle
key: ${{ matrix.plan.ghc-version }}
key: ${{ matrix.plan.ghc-version }}-${{ hashFiles('hal.cabal') }}
# Still use a reasonable warm start on a miss
restore-keys: |
${{ matrix.plan.ghc-version }}-
- name: Install Cabal
uses: haskell/actions/setup@v1
uses: haskell-actions/setup@v2
with:
ghc-version: ${{ matrix.plan.ghc-version }}
cabal-version: ${{ matrix.plan.cabal-version }}
- name: Install Project Dependencies (Cabal v3)
run: |
set -ex
cabal install --lib --force-reinstalls --ghc-options=-O0 --reorder-goals --max-backjumps=-1
set +ex
if: "startsWith(matrix.plan.cabal-version, '3')"
- name: Install Project Dependencies (Cabal v2)
run: |
set -ex
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/haskell_nix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Nix Haskell Builds

on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:

jobs:
build:
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
channel:
- 26-05
- 25-11
- 25-05
experimental:
- false
include:
- channel: unstable
experimental: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v27
- name: Cache Nix Store
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build Project
run: |
set -ex
nix-build --arg channel '"${{ matrix.channel }}"' --show-trace
set +ex
7 changes: 6 additions & 1 deletion .github/workflows/haskell_stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ on:
pull_request:
branches:
- master
workflow_dispatch:

jobs:
build:
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
resolver:
- lts-13
Expand All @@ -23,6 +25,9 @@ jobs:
- lts-19
- lts-20
- lts-21
- lts-22
- lts-23
- lts-24
experimental:
- false
include:
Expand All @@ -32,7 +37,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
~/.stack
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Publish to Hackage
on:
push:
tags:
- "v?[0-9]+.[0-9]+"
- "v?[0-9]+.[0-9]+.[0-9]+"
- "v?[0-9]+.[0-9]+.[0-9]+.[0-9]+"

Expand All @@ -12,7 +13,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
~/.stack
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ The format is based on [Keep a Changelog][chg] and this project adheres to
- Add `messageGroupId` to SQS Attributes.
- Fix the type of `messageAttributes` in `SQSEvent`.
- Fix header parsing to accept `null` values serialised as `{}`
- The `use-aeson-2.2` flag has been removed in favour of a
dependency on the `attoparsec-aeson` compatibility package.

## `1.1` - 2023-12-18

Expand Down
9 changes: 9 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Entry point for building against a given nixpkgs release channel, e.g.:
# nix-build --arg channel '"unstable"'
# nix-build # defaults to the current stable channel
{ channel ? "26-05" }:

let
pkgs = import (./nix/nixpkgs + "/${channel}.nix");
in
import ./nix/hal.nix { inherit pkgs; }
18 changes: 3 additions & 15 deletions hal.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.39.1.
--
-- see: https://github.com/sol/hpack
--
-- hash: a8f1e61978a7c0772b00f7d79b8d54b83646f1aac9da8e964f32057442567c95

name: hal
version: 1.1
Expand All @@ -29,11 +27,6 @@ source-repository head
type: git
location: https://github.com/Nike-inc/hal

flag use-aeson-2-2
description: Required parsers are split out into a different package
manual: False
default: True

library
exposed-modules:
AWS.Lambda.Combinators
Expand Down Expand Up @@ -76,7 +69,9 @@ library
ScopedTypeVariables
ghc-options: -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints -fno-warn-partial-type-signatures -fno-warn-name-shadowing -fwarn-tabs -fwarn-unused-imports -fwarn-missing-signatures -fwarn-incomplete-patterns
build-depends:
base >=4.7 && <5
aeson >=1.4.1.0 && <2.3
, attoparsec-aeson >=2.1.0.0 && <2.3
, base >=4.7 && <5
, base64-bytestring
, bytestring
, case-insensitive
Expand All @@ -93,13 +88,6 @@ library
, time
, unordered-containers
default-language: Haskell2010
if flag(use-aeson-2-2)
build-depends:
aeson >=2.2.0.0 && <2.3.0.0
, attoparsec-aeson
else
build-depends:
aeson >=1.2.0.0 && <1.6 || >=2.0.0.0 && <2.2.0.0

test-suite hal-test
type: exitcode-stdio-1.0
Expand Down
3 changes: 3 additions & 0 deletions nix/hal.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{ pkgs }:

pkgs.haskellPackages.callCabal2nix "hal" ../. { }
3 changes: 3 additions & 0 deletions nix/nixpkgs/25-05.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Stable release channel, kept until it ages out of the ~1.5yr support
# window (see nix/nixpkgs/26-05.nix for pinning notes).
import (builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/refs/heads/nixos-25.05.tar.gz") {}
3 changes: 3 additions & 0 deletions nix/nixpkgs/25-11.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Stable release channel, kept until it ages out of the ~1.5yr support
# window (see nix/nixpkgs/26-05.nix for pinning notes).
import (builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/refs/heads/nixos-25.11.tar.gz") {}
5 changes: 5 additions & 0 deletions nix/nixpkgs/26-05.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Stable release channel. Deliberately tracks the moving tip of the
# nixos-26.05 branch rather than an exact commit: that branch only ever
# gains Hydra-vetted backports (security fixes, critical bug fixes) for
# this release, the same stream a real `nix-channel --update` consumes.
import (builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/refs/heads/nixos-26.05.tar.gz") {}
4 changes: 4 additions & 0 deletions nix/nixpkgs/unstable.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Experimental channel. Deliberately unpinned so every CI run picks up whatever
# is at the tip of nixos-unstable. Marked `experimental: true` in the CI
# matrix so breakage here doesn't block merges.
import (builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/refs/heads/nixos-unstable.tar.gz") {}
17 changes: 2 additions & 15 deletions package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,11 @@ ghc-options:
- -fwarn-missing-signatures
- -fwarn-incomplete-patterns

flags:
use-aeson-2-2:
description: Required parsers are split out into a different package
default: true
manual: false

library:
source-dirs: src
dependencies:
- aeson >=1.4.1.0 && <2.3
- attoparsec-aeson >=2.1.0.0 && <2.3
- base64-bytestring
- bytestring
- case-insensitive
Expand All @@ -76,15 +72,6 @@ library:
- text
- time
- unordered-containers
when:
- condition: flag(use-aeson-2-2)
then:
dependencies:
- aeson >=2.2.0.0 && <2.3.0.0
- attoparsec-aeson
else:
dependencies:
- aeson >=1.2.0.0 && <1.6 || >=2.0.0.0 && <2.2.0.0

tests:
hal-test:
Expand Down
6 changes: 2 additions & 4 deletions stack-lts-13.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
resolver: lts-13.30
resolver: lts-13
packages:
- .
flags:
hal:
use-aeson-2-2: false
extra-deps:
- attoparsec-aeson-2.1.0.0
- hedgehog-1.0.5@sha256:85a2d8df595c91b815e9d2ef7734189d7028ce16212e83f35b2221807d87770b,4368
- hspec-2.7.1@sha256:0aa48928ce80a34f8ff8c5ef114bb6807edfb8d884bcd7211eceed710e7fb7a8,1769
- hspec-core-2.7.1@sha256:ead64b6d552e477549624fc9de3658657faac0dabf7109f889d595be05547bbf,4594
Expand Down
75 changes: 0 additions & 75 deletions stack-lts-13.yaml.lock

This file was deleted.

6 changes: 2 additions & 4 deletions stack-lts-14.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
resolver: lts-14.27
resolver: lts-14
packages:
- .
flags:
hal:
use-aeson-2-2: false
extra-deps:
- attoparsec-aeson-2.1.0.0
- hedgehog-1.0.5@sha256:85a2d8df595c91b815e9d2ef7734189d7028ce16212e83f35b2221807d87770b,4368
- hspec-hedgehog-0.0.1.2@sha256:4d09c7be34cdc941b78e4e964f71013ffeeb099ea32d8ede17ad9c03ae7a62e3,1470
Loading
Loading