Remove integer-gmp dependency
[ghc-heap-view.git] / ghc-heap-view.cabal
index 8cf1840..a2ad00b 100644 (file)
@@ -16,9 +16,20 @@ Build-type:          Simple
 Cabal-version:       >=1.2
 Extra-source-files:  Demo.hs
 
+Flag prim-supports-any
+    Description: The used GHC supports Any as an argument to foreign prim functions (GHC ticket #5931)
+    Default: False
+
 Library
   Exposed-modules: GHC.HeapView 
-  Build-depends:  base, ghc, integer-gmp, ghc-prim
+  Build-depends:
+    base,
+    ghc,
+    ghc-prim
   C-Sources: cbits/HeapView.c cbits/HeapViewPrim.cmm
   Hs-source-dirs: src/
+
+  if flag(prim-supports-any)
+    cpp-options: -DPRIM_SUPPORTS_ANY