Skip to content

Commit 7a48f23

Browse files
committed
Allow base-4.21 and Cabal 3.14.0
1 parent cf756bf commit 7a48f23

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

fp-ieee/fp-ieee.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ common deps
7272
-- We use a post-GHC 8.6 language extension: NumericUnderscores
7373
-- cast{Word32,Word64}To{Float,Double}, cast{Float,Double}To{Word32,Word64} are since base-4.10.0.0 (GHC 8.2)
7474
-- Semigroup((<>)) is exported from Prelude since base-4.11.0.0 (GHC 8.4)
75-
base >=4.12 && <4.21
75+
base >=4.12 && <4.22
7676
if !flag(pure-hs)
7777
cpp-options: -DUSE_FFI
7878
if !flag(pure-hs) && os(windows)

rounded-hw/Setup.hs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE CPP #-}
12
import Distribution.Simple
23
import Distribution.Simple.Configure (configure)
34
import Distribution.Simple.PackageIndex (allPackages)
@@ -6,6 +7,9 @@ import qualified Distribution.Types.InstalledPackageInfo as InstalledPackageInfo
67
import Distribution.Types.Library (Library (libBuildInfo))
78
import Distribution.Types.LocalBuildInfo (LocalBuildInfo (installedPkgs, localPkgDescr))
89
import Distribution.Types.PackageDescription (PackageDescription (library))
10+
#if MIN_VERSION_Cabal(3, 14, 0)
11+
import Distribution.Utils.Path (makeSymbolicPath)
12+
#endif
913

1014
{-
1115
We want to access "ghcconfig.h" from assembly source file (.S),
@@ -21,7 +25,11 @@ main = defaultMainWithHooks simpleUserHooks { confHook = myConfHook }
2125
let extraIncludeDirs :: [String]
2226
extraIncludeDirs = concatMap InstalledPackageInfo.includeDirs (allPackages $ installedPkgs localBuildInfo)
2327
updateBuildInfo :: BuildInfo -> BuildInfo
28+
#if MIN_VERSION_Cabal(3, 14, 0)
29+
updateBuildInfo bi = bi { includeDirs = includeDirs bi ++ map makeSymbolicPath extraIncludeDirs }
30+
#else
2431
updateBuildInfo bi = bi { includeDirs = includeDirs bi ++ extraIncludeDirs }
32+
#endif
2533
updateLibrary :: Library -> Library
2634
updateLibrary lib = lib { libBuildInfo = updateBuildInfo (libBuildInfo lib) }
2735
updatePkgDescr :: PackageDescription -> PackageDescription

rounded-hw/rounded-hw.cabal

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ source-repository head
3232
-- Custom setup is required to allow assembly sources to #include "ghcconfig.h"
3333
custom-setup
3434
setup-depends:
35-
Cabal >=3.0 && <3.15
36-
, base >=4.12 && <4.21
35+
Cabal >=3.0 && <3.17
36+
, base >=4.12 && <4.22
3737

3838
flag pure-hs
3939
description: Disable FFI
@@ -68,7 +68,7 @@ flag float128
6868
common deps
6969
build-depends:
7070
array >=0.5.2.0 && <0.6
71-
, base >=4.12 && <4.21
71+
, base >=4.12 && <4.22
7272
, deepseq >=1.4.4.0 && <1.6
7373
, fp-ieee ==0.1.*
7474
, primitive >=0.6.1.1 && <0.10

0 commit comments

Comments
 (0)