aboutsummaryrefslogtreecommitdiff
path: root/Setup.hs
diff options
context:
space:
mode:
authorDaniel Gröber <dxld@darkboxed.org>2017-06-12 03:48:50 +0200
committerDaniel Gröber <dxld@darkboxed.org>2017-06-12 03:48:50 +0200
commitc365e153d9379e7a1f5dd7a700aeb5eff619e4f3 (patch)
tree0fe6a1a27eee31c62584439012ab5700dbc55f60 /Setup.hs
parent225e209b2c93d7f28e206a618ef86a396cf65986 (diff)
Fix the build
Diffstat (limited to 'Setup.hs')
-rw-r--r--Setup.hs7
1 files changed, 5 insertions, 2 deletions
diff --git a/Setup.hs b/Setup.hs
index 94c8493..202bfb5 100644
--- a/Setup.hs
+++ b/Setup.hs
@@ -1,7 +1,10 @@
-#!/usr/bin/env runhaskell
{-# LANGUAGE CPP, RecordWildCards, NamedFieldPuns #-}
-#if defined(MIN_VERSION_Cabal) && MIN_VERSION_Cabal(2,1,0)
+#ifndef MIN_VERSION_Cabal
+#define MIN_VERSION_Cabal(x,y,z) 0
+#endif
+
+#if MIN_VERSION_Cabal(2,1,0)
-- https://github.com/haskell/cabal/pull/4501 is upstream in 2.0, yey
import Distribution.Simple