mirror of
https://github.com/tfausak/witch.git
synced 2024-11-22 14:58:13 +03:00
Use the same set of warning everywhere
This commit is contained in:
parent
84d4011d62
commit
108977a29b
2513
src/test/Main.hs
2513
src/test/Main.hs
File diff suppressed because it is too large
Load Diff
43
witch.cabal
43
witch.cabal
@ -1,4 +1,4 @@
|
||||
cabal-version: >= 1.10
|
||||
cabal-version: 2.2
|
||||
|
||||
name: witch
|
||||
version: 0.0.0.5
|
||||
@ -16,20 +16,9 @@ source-repository head
|
||||
location: https://github.com/tfausak/witch
|
||||
type: git
|
||||
|
||||
library
|
||||
build-depends:
|
||||
base >= 4.13.0 && < 4.16
|
||||
, template-haskell >= 2.15.0 && < 2.18
|
||||
common basics
|
||||
build-depends: base >= 4.13.0 && < 4.16
|
||||
default-language: Haskell2010
|
||||
exposed-modules:
|
||||
Witch
|
||||
Witch.Cast
|
||||
Witch.Identity
|
||||
Witch.Instances
|
||||
Witch.Lift
|
||||
Witch.TryCast
|
||||
Witch.TryCastException
|
||||
Witch.Utility
|
||||
ghc-options:
|
||||
-Weverything
|
||||
-Wno-implicit-prelude
|
||||
@ -39,13 +28,28 @@ library
|
||||
-Wno-redundant-constraints
|
||||
-Wno-safe
|
||||
-Wno-unsafe
|
||||
hs-source-dirs: src/lib
|
||||
|
||||
if impl(ghc >= 8.10)
|
||||
ghc-options:
|
||||
-Wno-missing-safe-haskell-mode
|
||||
-Wno-prepositive-qualified-module
|
||||
|
||||
library
|
||||
import: basics
|
||||
|
||||
build-depends:
|
||||
, template-haskell >= 2.15.0 && < 2.18
|
||||
exposed-modules:
|
||||
Witch
|
||||
Witch.Cast
|
||||
Witch.Identity
|
||||
Witch.Instances
|
||||
Witch.Lift
|
||||
Witch.TryCast
|
||||
Witch.TryCastException
|
||||
Witch.Utility
|
||||
hs-source-dirs: src/lib
|
||||
|
||||
if impl(ghc >= 9.0)
|
||||
hs-source-dirs: src/ghc-9.0
|
||||
else
|
||||
@ -55,12 +59,15 @@ library
|
||||
hs-source-dirs: src/ghc-8.8
|
||||
|
||||
test-suite test
|
||||
import: basics
|
||||
|
||||
build-depends:
|
||||
base
|
||||
, hspec >= 2.7.9 && < 2.8
|
||||
, QuickCheck >= 2.14.2 && < 2.15
|
||||
, witch
|
||||
default-language: Haskell2010
|
||||
ghc-options:
|
||||
-rtsopts
|
||||
-threaded
|
||||
-Wno-all-missed-specialisations
|
||||
hs-source-dirs: src/test
|
||||
main-is: Main.hs
|
||||
type: exitcode-stdio-1.0
|
||||
|
Loading…
Reference in New Issue
Block a user