Skip to content

Commit

Permalink
Fix build with mtl^>=2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisdral committed Feb 21, 2024
1 parent 78365b2 commit dd8056e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Revision history for quickcheck-lockstep

## 0.4.1 -- 2024-02-21

* PATCH: fix compilation failures when using `mtl ^>=2.3`

## 0.4.0 -- 2024-02-17

* BREAKING: Counter-examples now produce valid code. To facilitate this,
Expand Down
6 changes: 1 addition & 5 deletions src/Test/QuickCheck/StateModel/Lockstep/Op/SumProd.hs
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{-# LANGUAGE CPP #-}

module Test.QuickCheck.StateModel.Lockstep.Op.SumProd (Op(..), intOpId) where

#if __GLASGOW_HASKELL__ >= 906
import Control.Monad ((<=<))
#endif
import Control.Monad.Reader (ReaderT)
import Control.Monad.State
import Control.Monad.State (StateT)
import GHC.Show (appPrec)

import Test.QuickCheck.StateModel.Lockstep.Op
Expand Down
6 changes: 0 additions & 6 deletions src/Test/QuickCheck/StateModel/Lockstep/Run.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{-# LANGUAGE CPP #-}

-- | Run lockstep tests
--
-- Intended for qualified import.
Expand All @@ -17,11 +15,7 @@ module Test.QuickCheck.StateModel.Lockstep.Run (
import Prelude hiding (init)

import Control.Exception
#if __GLASGOW_HASKELL__ >= 906
import Control.Monad (void)
#else
import Control.Monad.Reader
#endif
import Data.Set (Set)
import Data.Set qualified as Set
import Data.Typeable
Expand Down
4 changes: 2 additions & 2 deletions test/Test/MockFS.hs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ module Test.MockFS (tests) where
import Prelude hiding (init)

import Control.Exception (catch, throwIO)
import Control.Monad
import Control.Monad.Reader
import Control.Monad (replicateM, (<=<))
import Control.Monad.Reader (ReaderT (..))
import Data.Bifunctor
import Data.Set (Set)
import Data.Set qualified as Set
Expand Down

0 comments on commit dd8056e

Please sign in to comment.