File: force-overloading

package info (click to toggle)
haskell-haskell-gi 0.21.4-3
  • links: PTS
  • area: main
  • in suites: buster
  • size: 724 kB
  • sloc: haskell: 8,498; ansic: 74; makefile: 6
file content (14 lines) | stat: -rw-r--r-- 576 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/lib/Data/GI/CodeGen/Code.hs
+++ b/lib/Data/GI/CodeGen/Code.hs
@@ -789,9 +789,9 @@
 
 -- | Generate some convenience CPP macros.
 cppMacros :: Text
-cppMacros = T.unlines ["#define ENABLE_OVERLOADING (MIN_VERSION_haskell_gi_overloading(1,0,0) \\"
+cppMacros = T.unlines ["#define ENABLE_OVERLOADING \\"
                       -- Haddocks look better without overloading
-                      , "       && !defined(__HADDOCK_VERSION__))"
+                      , "       (!defined(__HADDOCK_VERSION__))"
                       ]
 
 -- | Standard fields for every module.