Skip to content

Commit 660a59a

Browse files
authored
Allow crypton-connection 0.4 (#109)
* Allow `crypton-connection` 0.4. * `crypton-connection` 0.4 requires new parameter. * Also test against `ghc-9.10`. --------- Co-authored-by: Andreas Ländle <[email protected]>
1 parent b5dfe43 commit 660a59a

File tree

3 files changed

+21
-9
lines changed

3 files changed

+21
-9
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
jobs:
1313
linux:
1414

15-
runs-on: ubuntu-20.04
15+
runs-on: ubuntu-22.04
1616
strategy:
1717
fail-fast: false
1818
matrix:
@@ -25,13 +25,21 @@ jobs:
2525
cabal: 'latest'
2626
- ghc: '9.2'
2727
cabal: 'latest'
28+
- ghc: '9.4'
29+
cabal: 'latest'
30+
- ghc: '9.6'
31+
cabal: 'latest'
32+
- ghc: '9.8'
33+
cabal: 'latest'
34+
- ghc: '9.10'
35+
cabal: 'latest'
2836
steps:
29-
- uses: actions/checkout@v2
37+
- uses: actions/checkout@v4
3038

3139
# need to install older cabal/ghc versions from ppa repository
3240

3341
- name: Install recent cabal/ghc
34-
uses: haskell/actions/setup@v1
42+
uses: haskell-actions/setup@v2
3543
with:
3644
ghc-version: ${{ matrix.versions.ghc }}
3745
cabal-version: ${{ matrix.versions.cabal }}
@@ -42,15 +50,15 @@ jobs:
4250

4351
- name: Cache cabal global package db
4452
id: cabal-global
45-
uses: actions/cache@v2
53+
uses: actions/cache@v4
4654
with:
4755
path: |
4856
~/.cabal
4957
key: ${{ runner.os }}-${{ matrix.versions.ghc }}-${{ matrix.versions.cabal }}-cabal-global-${{ hashFiles('cabal.project') }}
5058

5159
- name: Cache cabal work
5260
id: cabal-local
53-
uses: actions/cache@v2
61+
uses: actions/cache@v4
5462
with:
5563
path: |
5664
dist-newstyle

Network/AMQP/Internal.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import Control.Monad
1111
import Data.Binary
1212
import Data.Binary.Get
1313
import Data.Binary.Put as BPut
14+
import Data.Default.Class
1415
import Data.Int (Int64)
1516
import Data.Maybe
1617
import Data.Text (Text)
@@ -174,8 +175,8 @@ data TLSSettings =
174175
connectionTLSSettings :: TLSSettings -> Maybe Conn.TLSSettings
175176
connectionTLSSettings tlsSettings =
176177
Just $ case tlsSettings of
177-
TLSTrusted -> Conn.TLSSettingsSimple False False False
178-
TLSUntrusted -> Conn.TLSSettingsSimple True False False
178+
TLSTrusted -> Conn.TLSSettingsSimple False False False def
179+
TLSUntrusted -> Conn.TLSSettingsSimple True False False def
179180
TLSCustom x -> x
180181

181182
-- | A 'SASLMechanism' is described by its name ('saslName'), its initial response ('saslInitialResponse'), and an optional function ('saslChallengeFunc') that

amqp.cabal

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@ Library
2424
containers>=0.2,
2525
bytestring>=0.9,
2626
data-binary-ieee754>=0.4.2.1,
27+
data-default-class >= 0.1,
2728
text>=0.11.2,
2829
split>=0.2,
2930
clock >= 0.4.0.1,
3031
monad-control >= 0.3,
31-
crypton-connection >= 0.3.1 && <= 0.4,
32+
crypton-connection >= 0.4 && <= 0.5,
3233
vector,
3334
stm >= 2.4.0,
3435
network-uri >= 2.6,
@@ -67,6 +68,7 @@ test-suite spec
6768
ConnectionSpec
6869
ExchangeDeclareSpec
6970
ExchangeDeleteSpec
71+
FromURISpec
7072
QueueDeclareSpec
7173
QueueDeleteSpec
7274
QueuePurgeSpec
@@ -76,12 +78,13 @@ test-suite spec
7678
, containers>=0.2
7779
, bytestring>=0.9
7880
, data-binary-ieee754>=0.4.2.1
81+
, data-default-class >= 0.1
7982
, text>=0.11.2
8083
, split>=0.2
8184
, clock >= 0.4.0.1
8285
, hspec >= 1.3
8386
, hspec-expectations >= 0.3.3
84-
, crypton-connection >= 0.3.1 && <= 0.4
87+
, crypton-connection >= 0.4 && <= 0.5
8588
, vector
8689
, stm >= 2.4.0
8790
, network-uri >= 2.6

0 commit comments

Comments
 (0)