[Pkg-haskell-commits] darcs: haskell-quickcheck: Fix detection whether template haskell is supported

Joachim Breitner mail at joachim-breitner.de
Tue Dec 30 23:30:15 UTC 2014


Tue Dec 30 23:21:06 UTC 2014  Joachim Breitner <mail at joachim-breitner.de>
  * Fix detection whether template haskell is supported 

    M ./changelog +6
    M ./rules -1 +1

Tue Dec 30 23:21:06 UTC 2014  Joachim Breitner <mail at joachim-breitner.de>
  * Fix detection whether template haskell is supported 
diff -rN -u old-haskell-quickcheck/changelog new-haskell-quickcheck/changelog
--- old-haskell-quickcheck/changelog	2014-12-30 23:30:14.906104785 +0000
+++ new-haskell-quickcheck/changelog	2014-12-30 23:30:14.914104777 +0000
@@ -1,3 +1,9 @@
+haskell-quickcheck (2.7.6-5) UNRELEASED; urgency=medium
+
+  * Fix detection whether template haskell is supported 
+
+ -- Joachim Breitner <nomeata at debian.org>  Wed, 31 Dec 2014 00:20:37 +0100
+
 haskell-quickcheck (2.7.6-4) experimental; urgency=medium
 
   * Depend on haskell-devscripts 0.9, found in experimental
diff -rN -u old-haskell-quickcheck/rules new-haskell-quickcheck/rules
--- old-haskell-quickcheck/rules	2014-12-30 23:30:14.906104785 +0000
+++ new-haskell-quickcheck/rules	2014-12-30 23:30:14.910104781 +0000
@@ -5,7 +5,7 @@
 DEB_CABAL_PACKAGE = quickcheck2
 
 # Disable templateHaskell on architecture that doesn't support it
-DEB_SETUP_GHC_CONFIGURE_ARGS := $(shell test -e /usr/lib/ghc/bin/ghci || echo --flags=-templateHaskell)
+DEB_SETUP_GHC_CONFIGURE_ARGS := $(shell ghc --info | fgrep 'Have interpreter' | fgrep -q YES || --flags=-templateHaskell )
 
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/hlibrary.mk




More information about the Pkg-haskell-commits mailing list