Skip to content

Commit

Permalink
rm-old-base: restore builds not of cabal itself
Browse files Browse the repository at this point in the history
The #ifdefs being generated need to be kept here so that projects other
than cabal can be built using older ghc versions and current cabal
versions.
  • Loading branch information
NadiaYvette committed Jun 27, 2024
1 parent 849a142 commit b8e89de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Cabal/src/Distribution/Simple/Build/PathsModule/Z.hs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ render z_root = execWriter $ do
then do
tell "#if defined(VERSION_base)\n"
tell "\n"
tell "#if MIN_VERSION_base(4,0,0)\n"
tell "catchIO :: IO a -> (Exception.IOException -> IO a) -> IO a\n"
tell "#else\n"
tell "catchIO :: IO a -> (Exception.Exception -> IO a) -> IO a\n"
tell "#endif\n"
tell "\n"
tell "#else\n"
tell "catchIO :: IO a -> (Exception.IOException -> IO a) -> IO a\n"
Expand Down

0 comments on commit b8e89de

Please sign in to comment.