Commit 19e4e37c authored by Ryan Scott's avatar Ryan Scott
Browse files

Only depend on transformers-compat on old GHCs

See ghc/ghc#16752.
parent 5d8d85c1
next [????.??.??]
-----------------
* Only depend on `transformers-compat` on old versions of GHC.
0.10.3 [2019.08.27] 0.10.3 [2019.08.27]
------------------- -------------------
* `MonadThrow` instance for the strict `ST` monad. * `MonadThrow` instance for the strict `ST` monad.
......
...@@ -41,18 +41,28 @@ source-repository head ...@@ -41,18 +41,28 @@ source-repository head
type: git type: git
location: git://github.com/ekmett/exceptions.git location: git://github.com/ekmett/exceptions.git
flag transformers-0-4
description: Use @transformers-0.4@ or later.
default: True
library library
build-depends: build-depends:
base >= 4.3 && < 5, base >= 4.3 && < 5,
stm >= 2.2 && < 3, stm >= 2.2 && < 3,
template-haskell >= 2.2 && < 2.16, template-haskell >= 2.2 && < 2.16,
transformers >= 0.2 && < 0.6,
transformers-compat >= 0.3 && < 0.7,
mtl >= 2.0 && < 2.3 mtl >= 2.0 && < 2.3
if !impl(ghc >= 8.0) if !impl(ghc >= 8.0)
build-depends: fail == 4.9.* build-depends: fail == 4.9.*
if flag(transformers-0-4)
build-depends:
transformers >= 0.4 && < 0.6
else
build-depends:
transformers >= 0.2 && < 0.4,
transformers-compat >= 0.3 && < 0.7
exposed-modules: exposed-modules:
Control.Monad.Catch Control.Monad.Catch
Control.Monad.Catch.Pure Control.Monad.Catch.Pure
...@@ -71,10 +81,16 @@ test-suite exceptions-tests ...@@ -71,10 +81,16 @@ test-suite exceptions-tests
exceptions, exceptions,
stm, stm,
template-haskell, template-haskell,
transformers,
transformers-compat,
mtl >= 2.0, mtl >= 2.0,
test-framework >= 0.8 && < 0.9, test-framework >= 0.8 && < 0.9,
test-framework-hunit >= 0.3 && < 0.4, test-framework-hunit >= 0.3 && < 0.4,
test-framework-quickcheck2 >= 0.3 && < 0.4, test-framework-quickcheck2 >= 0.3 && < 0.4,
QuickCheck >= 2.5 && < 2.14 QuickCheck >= 2.5 && < 2.14
if flag(transformers-0-4)
build-depends:
transformers >= 0.4 && < 0.6
else
build-depends:
transformers >= 0.2 && < 0.4,
transformers-compat >= 0.3 && < 0.7
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment