Skip to content

Commit fa28f06

Browse files
committed
Some warnings
Fixed -Wdodgy-imports Disabled -Wstar-is-type since Data.Kind doesn't exist in GHC-7.10 Disabled -Wunticked-promoted-constructors because it was only temporarily included in -Wall and is no longer recommended in new GHCs.
1 parent 403bfbc commit fa28f06

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

generic-arbitrary.cabal

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,3 @@ test-suite test
9999
-threaded
100100
-rtsopts
101101
"-with-rtsopts=-N -A64m -qb0 -n4m -T -I1"
102-
default-extensions: DeriveGeneric

src/Test/QuickCheck/Arbitrary/Generic.hs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#if __GLASGOW_HASKELL__ >= 806
2+
{-# OPTIONS_GHC -Wno-star-is-type #-}
3+
#endif
4+
#if __GLASGOW_HASKELL__ >= 800
5+
{-# OPTIONS_GHC -Wno-unticked-promoted-constructors #-}
6+
#endif
7+
18
{-|
29
310
This module is a generic implementation of the 'arbitrary' method. Example

test/RecursiveTest.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
module RecursiveTest where
1010

11-
import Control.DeepSeq hiding (Unit)
11+
import Control.DeepSeq (NFData)
1212
import GHC.Generics (Generic)
1313
import Test.QuickCheck
1414
import Test.QuickCheck.Arbitrary.Generic

0 commit comments

Comments
 (0)