Skip to content

Commit

Permalink
Allow base-compat-0.14 (#1755)
Browse files Browse the repository at this point in the history
  • Loading branch information
ysangkok authored May 16, 2024
1 parent 2af8e96 commit c057597
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion servant-client-core/servant-client-core.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ library
-- Here can be exceptions if we really need features from the newer versions.
build-depends:
, aeson >=1.4.1.0 && <3
, base-compat >=0.10.5 && <0.14
, base-compat >=0.10.5 && <0.15
, base64-bytestring >=1.0.0.1 && <1.3
, exceptions >=0.10.0 && <0.11
, free >=5.1 && <5.3
Expand Down
3 changes: 3 additions & 0 deletions servant-client-core/src/Servant/Client/Core/HasClient.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -Wno-missing-methods #-}
module Servant.Client.Core.HasClient (
clientIn,
Expand Down Expand Up @@ -25,8 +26,10 @@ import Data.Foldable
(toList)
import Data.Kind
(Type)
#if !MIN_VERSION_base_compat(0,14,0)
import Data.List
(foldl')
#endif
import Data.Sequence
(fromList)
import qualified Data.Text as T
Expand Down
2 changes: 1 addition & 1 deletion servant-client/servant-client.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ library
-- 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:
, base-compat >=0.10.5 && <0.14
, base-compat >=0.10.5 && <0.15
, exceptions >=0.10.0 && <0.11
, http-client >=0.5.13.1 && <0.8
, http-media >=0.7.1.3 && <0.9
Expand Down
6 changes: 4 additions & 2 deletions servant-client/src/Servant/Client/Internal/HttpClient.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ import qualified Data.ByteString as BS
import Data.ByteString.Builder
(toLazyByteString)
import qualified Data.ByteString.Lazy as BSL
import Data.Foldable
(foldl',toList)
#if !MIN_VERSION_base_compat(0,14,0)
import Data.Foldable (foldl')
#endif
import Data.Foldable (toList)
import Data.Functor.Alt
(Alt (..))
import Data.Maybe
Expand Down
2 changes: 1 addition & 1 deletion servant-docs/servant-docs.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ library
build-depends:
aeson >= 1.4.1.0 && < 3
, aeson-pretty >= 0.8.5 && < 0.9
, base-compat >= 0.10.5 && < 0.14
, base-compat >= 0.10.5 && < 0.15
, case-insensitive >= 1.2.0.11 && < 1.3
, hashable >= 1.2.7.0 && < 1.5
, http-media >= 0.7.1.3 && < 0.9
Expand Down
2 changes: 1 addition & 1 deletion servant-foreign/servant-foreign.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ library
-- 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:
base-compat >= 0.10.5 && < 0.14
base-compat >= 0.10.5 && < 0.15
, lens >= 4.17 && < 5.3
, http-types >= 0.12.2 && < 0.13

Expand Down
2 changes: 1 addition & 1 deletion servant-http-streams/servant-http-streams.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ library
-- 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:
base-compat >= 0.10.5 && < 0.14
base-compat >= 0.10.5 && < 0.15
, case-insensitive
, http-streams >= 0.8.6.1 && < 0.9
, http-media >= 0.7.1.3 && < 0.9
Expand Down
2 changes: 1 addition & 1 deletion servant-quickcheck/servant-quickcheck.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ library
build-depends:
aeson >=0.8 && <2.3
, base >=4.9 && <4.20
, base-compat-batteries >=0.10.1 && <0.14
, base-compat-batteries >=0.10.1 && <0.15
, bytestring >=0.10 && <0.13
, case-insensitive >=1.2 && <1.3
, clock >=0.7 && <0.9
Expand Down
2 changes: 1 addition & 1 deletion servant-swagger/servant-swagger.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ library
build-depends: aeson >=1.4.2.0 && <3
, aeson-pretty >=0.8.7 && <0.9
, base >=4.9.1.0 && <5
, base-compat >=0.10.5 && <0.14
, base-compat >=0.10.5 && <0.15
, bytestring >=0.10.8.1 && <0.13
, http-media >=0.7.1.3 && <0.9
, insert-ordered-containers >=0.2.1.0 && <0.3
Expand Down

0 comments on commit c057597

Please sign in to comment.