From 0a237018debb37de6b9ca5efcbfcd106e6498adb Mon Sep 17 00:00:00 2001 From: Oleg Grenrus Date: Sat, 2 Feb 2019 10:58:12 +0200 Subject: [PATCH] wip-servant-client-jsaddle --- cabal.project | 14 ++++++ .../servant-client-jsaddle.cabal | 49 ++++++++++++------- 2 files changed, 46 insertions(+), 17 deletions(-) diff --git a/cabal.project b/cabal.project index 8154030c..41011787 100644 --- a/cabal.project +++ b/cabal.project @@ -53,3 +53,17 @@ allow-newer: servant-quickcheck:servant, servant-quickcheck:servant-client, servant-quickcheck:servant-server, servant-quickcheck:hspec, servant-quickcheck:http-client + +-- jsaddle +allow-newer: + jsaddle:aeson, + jsaddle:exceptions, + jsaddle:lens, + jsaddle-webkit2gtk:aeson, + jsaddle-webkit2gtk:haskell-gi-base, + jsaddle-dom:base-compat, + jsaddle-dom:lens + +-- Ubuntu packages: +-- libgirepository1.0-dev +-- libwebkit2gtk-4.0-dev diff --git a/servant-client-jsaddle/servant-client-jsaddle.cabal b/servant-client-jsaddle/servant-client-jsaddle.cabal index 5b8ad8df..e8744fc1 100644 --- a/servant-client-jsaddle/servant-client-jsaddle.cabal +++ b/servant-client-jsaddle/servant-client-jsaddle.cabal @@ -34,26 +34,41 @@ library exposed-modules: Servant.Client.JSaddle Servant.Client.Internal.JSaddleXhrClient + + -- Bundled with GHC: Lower bound to not force re-installs + -- text and mtl are bundled starting with GHC-8.4 build-depends: - base >= 4.7 && < 4.13 - , bytestring >= 0.10 && < 0.11 - , case-insensitive >= 1.2.0.0 && < 1.3.0.0 - , containers >= 0.5 && < 0.6 - , exceptions >= 0.8 && < 0.11 - , http-media - , http-types - , jsaddle - , jsaddle-dom - , monad-control >= 1.0.0.4 && < 1.1 - , mtl >= 2.1 && < 2.3 - , semigroupoids >= 4.3 && < 5.3 - , servant-client-core == 0.13.* - , string-conversions >= 0.3 && < 0.5 - , text - , transformers >= 0.3 && < 0.6 - , transformers-base >= 0.4.4 && < 0.5 + base >= 4.9 && < 4.13 + , bytestring >= 0.10.8.1 && < 0.11 + , containers >= 0.5.7.1 && < 0.6 + , mtl >= 2.2.2 && < 2.3 + , text >= 1.2.3.0 && < 1.3 + , transformers >= 0.5.2.0 && < 0.6 + + -- GHCJS dependencies if impl(ghcjs) build-depends: ghcjs-base + + -- Servant dependencies. + -- Strict dependency on `servant-client-core` as we re-export things. + build-depends: + servant-client-core == 0.15.* + + -- Other dependencies: Lower bound around what is in the latest Stackage LTS. + -- Here can be exceptions if we really need features from the newer versions. + build-depends: + case-insensitive >= 1.2.0.0 && < 1.3.0.0 + , exceptions >= 0.10.0 && < 0.11 + , http-media >= 0.7.1.3 && < 0.8 + , http-types >= 0.12.2 && < 0.13 + , jsaddle >= 0.9.5.0 && < 0.10 + , jsaddle-dom >= 0.9.2.0 && < 0.10 + , monad-control >= 1.0.2.3 && < 1.1 + , semigroupoids >= 5.3.1 && < 5.4 + , string-conversions >= 0.4.0.1 && < 0.5 + , transformers-base >= 0.4.4 && < 0.5 + + hs-source-dirs: src default-language: Haskell2010 ghc-options: -Wall