Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/haskell-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ jobs:
compilerVersion: 9.2.7
setup-method: ghcup
allow-failure: false
- compiler: ghc-9.0.2
compilerKind: ghc
compilerVersion: 9.0.2
setup-method: ghcup
allow-failure: false
- compiler: ghc-8.10.1
compilerKind: ghc
compilerVersion: 8.10.1
Expand Down
1 change: 1 addition & 0 deletions hedgehog-corpus/hedgehog-corpus.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ tested-with:
, GHC == 8.6.5
, GHC == 8.8.3
, GHC == 8.10.1
, GHC == 9.0.2
, GHC == 9.2.7
, GHC == 9.4.8
, GHC == 9.6.6
Expand Down
1 change: 1 addition & 0 deletions hedgehog-dieharder/hedgehog-dieharder.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ tested-with:
, GHC == 8.6.5
, GHC == 8.8.3
, GHC == 8.10.1
, GHC == 9.0.2
, GHC == 9.2.7
, GHC == 9.4.8
, GHC == 9.6.6
Expand Down
1 change: 1 addition & 0 deletions hedgehog-example/hedgehog-example.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ tested-with:
, GHC == 8.6.5
, GHC == 8.8.3
, GHC == 8.10.1
, GHC == 9.0.2
, GHC == 9.2.7
, GHC == 9.4.8
, GHC == 9.6.6
Expand Down
1 change: 1 addition & 0 deletions hedgehog-quickcheck/hedgehog-quickcheck.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ tested-with:
, GHC == 8.6.5
, GHC == 8.8.3
, GHC == 8.10.1
, GHC == 9.0.2
, GHC == 9.2.7
, GHC == 9.4.8
, GHC == 9.6.6
Expand Down
1 change: 1 addition & 0 deletions hedgehog-test-laws/hedgehog-test-laws.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ tested-with:
, GHC == 8.6.5
, GHC == 8.8.3
, GHC == 8.10.1
, GHC == 9.0.2
, GHC == 9.2.7
, GHC == 9.4.8
, GHC == 9.6.6
Expand Down
1 change: 1 addition & 0 deletions hedgehog/hedgehog.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ tested-with:
, GHC == 8.6.5
, GHC == 8.8.3
, GHC == 8.10.1
, GHC == 9.0.2
, GHC == 9.2.7
, GHC == 9.4.8
, GHC == 9.6.6
Expand Down
6 changes: 3 additions & 3 deletions hedgehog/src/Hedgehog/Internal/Gen.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1208,7 +1208,7 @@ element fa = withFrozenCallStack $ case toList fa of
-- /The input list must be non-empty./
--
element_ :: (HasCallStack, MonadGen m) => [a] -> m a
element_ = withFrozenCallStack . \case
element_ l = withFrozenCallStack $ case l of
[] ->
error "Hedgehog.Gen.element: used with empty list"
xs -> do
Expand All @@ -1222,7 +1222,7 @@ element_ = withFrozenCallStack . \case
-- /The input list must be non-empty./
--
choice :: (HasCallStack, MonadGen m) => [m a] -> m a
choice = withFrozenCallStack . \case
choice l = withFrozenCallStack $ case l of
[] ->
error "Hedgehog.Gen.choice: used with empty list"
xs -> do
Expand All @@ -1237,7 +1237,7 @@ choice = withFrozenCallStack . \case
-- /The input list must be non-empty./
--
frequency :: (HasCallStack, MonadGen m) => [(Int, m a)] -> m a
frequency = withFrozenCallStack . \case
frequency l = withFrozenCallStack $ case l of
[] ->
error "Hedgehog.Gen.frequency: used with empty list"
xs0 -> do
Expand Down