Skip to content

Commit

Permalink
sandwich-quickcheck: preparing to release 0.2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjm committed Feb 16, 2025
1 parent 19110e4 commit 67cdc34
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
5 changes: 4 additions & 1 deletion sandwich-quickcheck/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog for sandwich-quickcheck

## Unreleased changes
## 0.2.0.0

* Don't use MonadBaseControl anymore
* Expose HasQuickCheckContext

## 0.1.0.7

Expand Down
3 changes: 1 addition & 2 deletions sandwich-quickcheck/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: sandwich-quickcheck
version: 0.1.0.7
version: 0.2.0.0
github: "codedownio/sandwich"
license: BSD3
author: "Tom McLaughlin"
Expand All @@ -20,7 +20,6 @@ dependencies:
- sandwich >= 0.1.0.4
- text
- unliftio
- unliftio-core

default-extensions:
- OverloadedStrings
Expand Down
8 changes: 3 additions & 5 deletions sandwich-quickcheck/sandwich-quickcheck.cabal
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.36.0.
-- This file has been generated from package.yaml by hpack version 0.37.0.
--
-- see: https://github.com/sol/hpack
--
-- hash: 133b78c0daac18c826d3897da7af63fb1deb8a1a3f17ebb4b454e1b4600c9aaa
-- hash: 30990c5e07266e7f70b53b532a5114f3aa920235b0d9e3ed40bdda6371c141e4

name: sandwich-quickcheck
version: 0.1.0.7
version: 0.2.0.0
synopsis: Sandwich integration with QuickCheck
description: Please see the <https://codedownio.github.io/sandwich/docs/extensions/sandwich-quickcheck documentation>.
category: Testing
Expand Down Expand Up @@ -49,7 +49,6 @@ library
, sandwich >=0.1.0.4
, text
, unliftio
, unliftio-core
default-language: Haskell2010

test-suite sandwich-quickcheck-test
Expand All @@ -76,5 +75,4 @@ test-suite sandwich-quickcheck-test
, sandwich >=0.1.0.4
, text
, unliftio
, unliftio-core
default-language: Haskell2010
3 changes: 1 addition & 2 deletions sandwich-quickcheck/src/Test/Sandwich/QuickCheck.hs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ module Test.Sandwich.QuickCheck (

import Control.Monad.Free
import Control.Monad.IO.Class
import Control.Monad.IO.Unlift
import Data.Maybe
import qualified Data.Text as T
import GHC.Stack
Expand Down Expand Up @@ -95,7 +94,7 @@ introduceQuickCheckCommandLineOptions'' msg args = introduce msg quickCheckConte


-- | Similar to 'it'. Runs the given prop with QuickCheck using the currently introduced 'Args'. Throws an appropriate exception on failure.
prop :: (HasCallStack, HasQuickCheckContext context, MonadUnliftIO m, Testable prop) => String -> prop -> Free (SpecCommand context m) ()
prop :: (HasCallStack, HasQuickCheckContext context, MonadIO m, Testable prop) => String -> prop -> Free (SpecCommand context m) ()
prop msg p = it msg $ do
QuickCheckContext args <- getContext quickCheckContext
liftIO (quickCheckWithResult (args { QC.chatty = False }) p) >>= \case
Expand Down

0 comments on commit 67cdc34

Please sign in to comment.