aboutsummaryrefslogtreecommitdiff
path: root/src/CabalHelper/Compiletime/Compat
diff options
context:
space:
mode:
Diffstat (limited to 'src/CabalHelper/Compiletime/Compat')
-rw-r--r--src/CabalHelper/Compiletime/Compat/ProgramDb.hs14
1 files changed, 14 insertions, 0 deletions
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