Skip to content

Commit 45bcab6

Browse files
kutyelclaude
andcommitted
Use crypton-asn1-types/encoding when +crypton flag is set
crypton-x509 >= 1.8.0 depends on crypton-asn1-types rather than asn1-types. Having both in scope causes a typeclass conflict on ASN1Object. Move asn1-types and asn1-encoding into the else branch and add crypton-asn1-types and crypton-asn1-encoding to the if flag(crypton) branch. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 628805a commit 45bcab6

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

hsaml2.cabal

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,16 @@ library
7272
if flag(crypton)
7373
build-depends:
7474
crypton,
75-
crypton-x509
75+
crypton-x509,
76+
crypton-asn1-types,
77+
crypton-asn1-encoding
7678
else
7779
build-depends:
7880
cryptonite,
79-
x509
81+
x509,
82+
asn1-types >= 0.2,
83+
asn1-encoding
8084
build-depends:
81-
asn1-encoding,
82-
asn1-types >= 0.2,
8385
base >=4.8 && <5,
8486
base64-bytestring,
8587
bytestring,

0 commit comments

Comments
 (0)