Skip to content

Commit

Permalink
Update Setup.hs for Cabal 3.14
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhavsagar committed Dec 30, 2024
1 parent 5d0c71e commit e95de35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Setup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@ checkGetentropy cc lbi = do
where cArgs = ["-DHAVE_GETENTROPY"]

myRawSystemExitCode :: Verbosity -> FilePath -> [String] -> IO ExitCode
#if __GLASGOW_HASKELL__ >= 704
#if MIN_VERSION_Cabal(3,14,0)
myRawSystemExitCode verbosity program arguments =
rawSystemExitCode verbosity Nothing program arguments Nothing
#elif __GLASGOW_HASKELL__ >= 704
-- We know for sure, that if GHC >= 7.4 implies Cabal >= 1.14
myRawSystemExitCode = rawSystemExitCode
#else
Expand Down
2 changes: 1 addition & 1 deletion entropy.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Flag DoNotGetEntropy
Manual: True

custom-setup
setup-depends: Cabal >= 1.10 && < 3.13
setup-depends: Cabal >= 1.10 && < 3.15
, base < 5
, filepath < 1.6
, directory < 1.4
Expand Down

0 comments on commit e95de35

Please sign in to comment.