From 1fbc090874cc9631cc54898b0af58583ce35bc29 Mon Sep 17 00:00:00 2001 From: Daniel Gröber Date: Sun, 12 Aug 2018 04:31:35 +0200 Subject: Add Cabal 2.4 support --- src/CabalHelper/Compiletime/Compat/ProgramDb.hs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/CabalHelper/Compiletime/Compat/ProgramDb.hs (limited to 'src/CabalHelper/Compiletime/Compat') diff --git a/src/CabalHelper/Compiletime/Compat/ProgramDb.hs b/src/CabalHelper/Compiletime/Compat/ProgramDb.hs new file mode 100644 index 0000000..89dd886 --- /dev/null +++ b/src/CabalHelper/Compiletime/Compat/ProgramDb.hs @@ -0,0 +1,14 @@ +{-# LANGUAGE CPP #-} +module CabalHelper.Compiletime.Compat.ProgramDb + ( defaultProgramDb + , programPath + , lookupProgram + , ghcProgram + , ghcPkgProgram + ) where + +import Distribution.Simple.Program + +#if !MIN_VERSION_Cabal(2,0,0) +defaultProgramDb = defaultProgramConfiguration +#endif -- cgit v1.2.3