Skip to content

Commit

Permalink
remove failureResult as it is no longer relevant
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximilianAlgehed committed Dec 15, 2023
1 parent f8229b9 commit b712579
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions quickcheck-dynamic/src/Test/QuickCheck/StateModel.hs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ module Test.QuickCheck.StateModel (
computePrecondition,
computeArbitraryAction,
computeShrinkAction,
failureResult,
) where

import Control.Monad
Expand Down Expand Up @@ -212,15 +211,6 @@ class (forall a e. Show (Action state e a), Monad m) => RunModel state m where
monitoring :: (state, state) -> Action state e a -> LookUp m -> Either (Realized m e) (Realized m a) -> Property -> Property
monitoring _ _ _ _ prop = prop

-- | Indicate that the result of an action (in `perform`)
-- should not be inspected by the postcondition or appear
-- in a positive test. Useful when we want to give a type
-- for an `Action` like `SomeAct :: Action SomeState SomeType`
-- instead of `SomeAct :: Action SomeState (Either SomeError SomeType)`
-- but still need to return something in `perform` in the failure case.
failureResult :: HasCallStack => a
failureResult = error "A result of a failing action has been erronesouly inspected"

computePostcondition
:: forall m state e a
. RunModel state m
Expand Down

0 comments on commit b712579

Please sign in to comment.