diff options
author | Daniel Gröber <dxld@darkboxed.org> | 2018-08-12 04:31:35 +0200 |
---|---|---|
committer | Daniel Gröber <dxld@darkboxed.org> | 2018-08-12 05:02:46 +0200 |
commit | 1fbc090874cc9631cc54898b0af58583ce35bc29 (patch) | |
tree | 02c84b5375e4341b4c60e95184916ae13da42358 /src/CabalHelper/Compiletime/Compat | |
parent | 3d5f08a69d67e7770f0c6e134fe64bcfd7009ff2 (diff) |
Add Cabal 2.4 support
Diffstat (limited to 'src/CabalHelper/Compiletime/Compat')
-rw-r--r-- | src/CabalHelper/Compiletime/Compat/ProgramDb.hs | 14 |
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 |