Skip to content

Commit 5471b81

Browse files
committed
Fix hanging issue.
1 parent 4eca0d7 commit 5471b81

File tree

4 files changed

+18
-9
lines changed

4 files changed

+18
-9
lines changed

cabal.project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repository cardano-haskell-packages
1313
-- See CONTRIBUTING for information about these, including some Nix commands
1414
-- you need to run if you change them
1515
index-state:
16-
, hackage.haskell.org 2025-06-22T20:18:27Z
16+
, hackage.haskell.org 2025-06-27T07:48:39Z
1717
, cardano-haskell-packages 2025-06-22T22:27:17Z
1818

1919
packages:

cardano-cli/cardano-cli.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ library cardano-cli-test-lib
332332
exceptions,
333333
filepath,
334334
hedgehog,
335-
hedgehog-extras >=0.7.1,
335+
hedgehog-extras >=0.9,
336336
http-types,
337337
lifted-base,
338338
mmorph,

cardano-cli/test/cardano-cli-test/Test/Cli/Run/Hash.hs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{- HLINT ignore "Use camelCase" -}
2+
{-# LANGUAGE FlexibleContexts #-}
23

34
module Test.Cli.Run.Hash where
45

56
import Control.Monad (void)
67
import Control.Monad.Catch (MonadCatch)
8+
import Control.Monad.Trans.Control (MonadBaseControl)
79
import Control.Monad.Trans.Resource (MonadResource)
810
import GHC.Stack
911

@@ -24,7 +26,14 @@ hprop_hash_trip =
2426
-- Test that @cardano-cli hash --text > file1@ and
2527
-- @cardano-cli --text --out-file file2@ yields
2628
-- similar @file1@ and @file2@ files.
27-
hash_trip_fun :: (MonadTest m, MonadCatch m, MonadResource m, HasCallStack) => String -> m ()
29+
hash_trip_fun
30+
:: HasCallStack
31+
=> MonadBaseControl IO m
32+
=> MonadCatch m
33+
=> MonadResource m
34+
=> MonadTest m
35+
=> String
36+
-> m ()
2837
hash_trip_fun input =
2938
H.moduleWorkspace "tmp" $ \tempDir -> do
3039
hashFile <- noteTempFile tempDir "hash.txt"

flake.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)