From 6e94c574a660e2a6703e816bb78f64dc4e125486 Mon Sep 17 00:00:00 2001 From: waddlaw Date: Sat, 18 Jan 2020 13:18:14 +0900 Subject: [PATCH] update cabal-version to 2.4 --- haskell-stack-trace-plugin.cabal | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/haskell-stack-trace-plugin.cabal b/haskell-stack-trace-plugin.cabal index 2c46ab8..a91601a 100644 --- a/haskell-stack-trace-plugin.cabal +++ b/haskell-stack-trace-plugin.cabal @@ -1,3 +1,4 @@ +cabal-version: 2.4 name: haskell-stack-trace-plugin version: 0.1.0.1 synopsis: haskell-stack-trace-plugin @@ -12,7 +13,6 @@ copyright: 2018-2020 Shinya Yamaguchi category: Compiler Plugin, Development, Debug build-type: Simple extra-source-files: CHANGELOG.md, Readme.md -cabal-version: >=1.10 tested-with: GHC == 8.6.5 source-repository head @@ -24,11 +24,17 @@ flag dev manual: True default: False +common common-opts + build-depends: + base ^>=4.12 + + default-language: Haskell2010 + library + import: common-opts hs-source-dirs: src build-depends: - base >=4.12 && <4.13, - ghc>=8.6.2 && <8.6.6 + ghc ^>=8.6 exposed-modules: StackTrace.Plugin @@ -42,20 +48,19 @@ library -Wno-missing-home-modules else ghc-options: -O2 -Wall - default-language: Haskell2010 test-suite test + import: common-opts main-is: Spec.hs hs-source-dirs: test type: exitcode-stdio-1.0 build-depends: - base >=4.12 && <4.13, - bytestring >= 0.10.8 && <0.11, - hspec >= 2.7 && <2.8, - typed-process >= 0.2.6 && <0.2.9 + bytestring ^>=0.10, + hspec ^>=2.7, + typed-process ^>=0.2.6 build-tool-depends: - hspec-discover:hspec-discover >= 2.7 && <2.8 + hspec-discover:hspec-discover ^>= 2.7 other-modules: StackTrace.PluginSpec @@ -64,14 +69,11 @@ test-suite test else ghc-options: -O2 -Wall - default-language: Haskell2010 - executable example + import: common-opts main-is: Main.hs hs-source-dirs: example - default-language: Haskell2010 ghc-options: -fplugin=StackTrace.Plugin build-depends: - base >=4.12 && <4.13, haskell-stack-trace-plugin