Skip to content

Commit

Permalink
Merge pull request #39 from sjakobi/warnings
Browse files Browse the repository at this point in the history
Clean up some warnings
  • Loading branch information
conal authored Sep 6, 2019
2 parents 3cf555c + 9886b4e commit ce7f1c8
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 13 deletions.
1 change: 0 additions & 1 deletion src/Test/QuickCheck/Checkers.hs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ module Test.QuickCheck.Checkers
) where

import Data.Function (on)
import Data.Monoid (Monoid (mempty, mappend))
import Control.Applicative
import Control.Arrow ((***),first)
import qualified Control.Exception as Ex
Expand Down
16 changes: 6 additions & 10 deletions src/Test/QuickCheck/Classes.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
, Rank2Types, TypeOperators, CPP
#-}

{-# OPTIONS_GHC -Wall #-}

#if MIN_VERSION_base(4,9,0)
-- https://github.com/conal/checkers/pull/38
{-# OPTIONS_GHC -Wno-redundant-constraints #-}
#endif
----------------------------------------------------------------------
-- |
-- Module : Test.QuickCheck.Classes
Expand All @@ -34,17 +28,16 @@ module Test.QuickCheck.Classes
)
where

import Control.Applicative ((<$>))
import Data.Foldable (Foldable(..))
import Data.Functor.Apply (Apply ((<.>)))
import Data.Functor.Alt (Alt ((<!>)))
import Data.Functor.Bind (Bind ((>>-)), apDefault)
import qualified Data.Functor.Bind as B (Bind (join))
import Data.List.NonEmpty (NonEmpty(..))
import Data.Semigroup (Semigroup (..))
import Data.Monoid (Monoid (mappend, mempty), Endo(..), Dual(..), Sum(..), Product(..))
import Data.Traversable (Traversable (..), fmapDefault, foldMapDefault)
import Control.Applicative
import Data.Monoid (Endo(..), Dual(..), Sum(..), Product(..))
import Data.Traversable (fmapDefault, foldMapDefault)
import Control.Applicative (Alternative(..))
import Control.Monad (MonadPlus (..), ap, join)
import Control.Arrow (Arrow,ArrowChoice,first,second,left,right,(>>>),arr)
import Test.QuickCheck
Expand Down Expand Up @@ -745,6 +738,9 @@ traversable = const ( "traversable"
-- | Note that 'foldable' doesn't check the strictness of 'foldl'', `foldr'' and `foldMap''.
--
-- @since 0.4.13

-- The (Arbitrary m) constraint is required with base >= 4.13, where we have an
-- additional property for checking foldMap'.
foldable :: forall t a b m n o.
( Foldable t
, CoArbitrary a, CoArbitrary b
Expand Down
1 change: 1 addition & 0 deletions src/Test/QuickCheck/Instances/Array.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module Test.QuickCheck.Instances.Array where
import Test.QuickCheck
import Data.Array

-- The redundant (Ix a) constraint is required with GHC-7.10.
instance (Ix a, Integral a, Arbitrary b) => Arbitrary (Array a b) where
arbitrary =
(\x -> listArray (0,fromIntegral (length x - 1)) x) <$> arbitrary
Expand Down
1 change: 0 additions & 1 deletion src/Test/QuickCheck/Instances/Maybe.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module Test.QuickCheck.Instances.Maybe (maybeGen) where

import Control.Applicative (pure, (<$>))
import Test.QuickCheck

maybeGen :: Gen a -> Gen (Maybe a)
Expand Down
1 change: 0 additions & 1 deletion src/Test/QuickCheck/Instances/Num.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ module Test.QuickCheck.Instances.Num
,nonZero,nonZero_
) where

import Control.Applicative ((<$>))
import Test.QuickCheck
import Control.Monad.Extensions

Expand Down

0 comments on commit ce7f1c8

Please sign in to comment.