Skip to content

Commit 05a67bc

Browse files
committed
Fix CI job using GHC 8.6
1 parent a8fabd1 commit 05a67bc

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- uses: haskell/actions/setup@v1
3333
with:
3434
ghc-version: ${{ matrix.ghc }}
35-
cabal-version: '3.2'
35+
cabal-version: '3.4'
3636
- name: Update cabal package database
3737
run: cabal update
3838
- name: Build
@@ -126,7 +126,7 @@ jobs:
126126
- uses: haskell/actions/setup@v1
127127
with:
128128
ghc-version: ${{ matrix.ghc }}
129-
cabal-version: '3.2'
129+
cabal-version: '3.4'
130130
- name: Update cabal package database
131131
run: cabal update
132132
- name: Build

megaexample/Main.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ microservice httpRequestCounter = \req respond -> withSpan "handle_http_request"
8787
_ -> do
8888
bg_work <- async $ withSpan_ "background_task" do
8989
replicateM_ 3 $ do
90-
tasks <- forM [1..5] (\i ->
91-
async $ withSpan_ (BS.pack $ printf "task %d" (i :: Int)) $ threadDelay 10000)
90+
tasks <- replicateM 5 (async $ withSpan_ "task" $ threadDelay 10000)
9291
mapM_ wait tasks
9392
threadDelay 10000
9493
addEvent sp "message" "started bg work"

0 commit comments

Comments
 (0)