From 781ad23aea2d0a6b513f7a647844d597e47c9ca8 Mon Sep 17 00:00:00 2001 From: Akshay Mankar Date: Thu, 11 Jun 2026 16:20:10 +0200 Subject: [PATCH 1/2] cabal: Use crypton-asn1-{types,encoding} when crypton flag is on --- hsaml2.cabal | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/hsaml2.cabal b/hsaml2.cabal index 4ee2989..cc5a7d2 100644 --- a/hsaml2.cabal +++ b/hsaml2.cabal @@ -72,14 +72,16 @@ library if flag(crypton) build-depends: crypton, - crypton-x509 + crypton-x509, + crypton-asn1-types, + crypton-asn1-encoding else build-depends: cryptonite, - x509 + x509, + asn1-types >= 0.2, + asn1-encoding build-depends: - asn1-encoding, - asn1-types >= 0.2, base >=4.8 && <5, base64-bytestring, bytestring, From 744262d188a09fa277d748e979b605f3a27c5189 Mon Sep 17 00:00:00 2001 From: Akshay Mankar Date: Thu, 11 Jun 2026 16:34:18 +0200 Subject: [PATCH 2/2] cabal: Use ram instead of memory when using crypton --- hsaml2.cabal | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hsaml2.cabal b/hsaml2.cabal index cc5a7d2..d96f186 100644 --- a/hsaml2.cabal +++ b/hsaml2.cabal @@ -74,13 +74,15 @@ library crypton, crypton-x509, crypton-asn1-types, - crypton-asn1-encoding + crypton-asn1-encoding, + ram else build-depends: cryptonite, x509, asn1-types >= 0.2, - asn1-encoding + asn1-encoding, + memory build-depends: base >=4.8 && <5, base64-bytestring, @@ -93,7 +95,6 @@ library invertible, invertible-hxt, lens, - memory, mtl, network-uri, process,