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
9 changes: 4 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,16 @@ jobs:
- uses: actions/checkout@v2
- uses: haskell-actions/setup@v2
with:
ghc-version: '9.2.8'
ghc-version: '9.12.2'
enable-stack: true
- uses: actions/cache@v1
- uses: actions/cache@v4
with:
path: ~/.stack
key: ${{ runner.os }}-stack-${{ hashFiles('hsaml2.cabal') }}-${{ hashFiles('stack.yaml') }}
restore-keys: |
${{ runner.os }}-stack-
${{ runner.os }}-
- name: build
run: stack build --system-ghc --flag hsaml2:-crypton
run: stack build --system-ghc
- name: test
run: stack test --system-ghc --flag hsaml2:-crypton

run: stack test --system-ghc
31 changes: 9 additions & 22 deletions hsaml2.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,12 @@ library
SAML2.Bindings.Internal
c-sources:
SAML2/XML/libxml2_stub.c
if flag(crypton)
build-depends:
crypton,
crypton-x509,
crypton-asn1-types,
crypton-asn1-encoding,
ram
else
build-depends:
cryptonite,
x509,
asn1-types >= 0.2,
asn1-encoding,
memory
build-depends:
crypton >=1.0.6 && <1.1,
crypton-x509,
crypton-asn1-types,
crypton-asn1-encoding,
memory
build-depends:
base >=4.8 && <5,
base64-bytestring,
Expand Down Expand Up @@ -122,14 +114,9 @@ test-suite tests
XML.Signature
default-language: Haskell2010
ghc-options: -Wall
if flag(crypton)
build-depends:
crypton,
crypton-x509
else
build-depends:
cryptonite,
x509
build-depends:
crypton,
crypton-x509
build-depends:
base,
base64-bytestring,
Expand Down
7 changes: 6 additions & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
resolver: lts-20.26
resolver: nightly-2026-01-19
packages:
- .
extra-deps:
- crypton-1.0.6
- crypton-x509-1.8.0
- crypton-asn1-types-0.4.1
- crypton-asn1-encoding-0.10.0
- crypton-asn1-parse-0.10.0
- invertible-0.2.0.8
- invertible-hxt-0.1
15 changes: 11 additions & 4 deletions stack.yaml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
# https://docs.haskellstack.org/en/stable/lock_files

packages:
- completed:
hackage: crypton-1.0.6@sha256:6686b3517a065530a5b10fd7b186055815d79b30b15c5eb27cb87a1794595ddd,16653
pantry-tree:
sha256: a610b645a866c77dfc947af400685930b191e681e73280466451e46448960cfe
size: 23412
original:
hackage: crypton-1.0.6
- completed:
hackage: invertible-0.2.0.8@sha256:a6bfbf7e48a1744716134d8c73b3dec2d668ee13ba2c7cffce73621a275d559f,3628
pantry-tree:
Expand All @@ -20,7 +27,7 @@ packages:
hackage: invertible-hxt-0.1
snapshots:
- completed:
sha256: 5a59b2a405b3aba3c00188453be172b85893cab8ebc352b1ef58b0eae5d248a2
size: 650475
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/20/26.yaml
original: lts-20.26
sha256: daa0c3bbf71e6cfdfde7638457b6657b7ec96a242261b70dc261d255ad80462f
size: 719997
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/nightly/2026/1/19.yaml
original: nightly-2026-01-19
Loading