<br><font size=2 face="sans-serif">cafe, is there a way to patch the build-depends
line of a cabal file without breaking backwards compatibility? </font>
<br>
<br><font size=2 face="sans-serif">I just patched HDBC head to compile
under ghc 6.7. Unfortunately it now won't compile in 6.6.1. </font>
<br>
<br><font size=2 face="sans-serif">is there a way for build-depends to
detect which version of ghc you're on?</font>
<br>
<br><font size=2 face="sans-serif">also I seem to recall that -fglasgow-exts
was deprecated under 6.7. is there a better way to beat back the error
message below than this?</font>
<br>
<br><font size=2 face="sans-serif">thanks,</font>
<br>
<br><font size=2 face="sans-serif">thomas.</font>
<br>
<br><font size=2 face="sans-serif">{</font>
<br><font size=2 face="sans-serif">hunk ./Database/HDBC/Statement.hs 1</font>
<br><font size=2 face="sans-serif">+{-# LANGUAGE TypeSynonymInstances #-}</font>
<br><font size=2 face="sans-serif">hunk ./Database/HDBC/Types.hs 1</font>
<br><font size=2 face="sans-serif">+{-# OPTIONS_GHC -fglasgow-exts #-}</font>
<br><font size=2 face="sans-serif">+{-</font>
<br><font size=2 face="sans-serif">+-- without -fglasgow-exts you get:
[_$_]</font>
<br><font size=2 face="sans-serif">+Database/HDBC/Types.hs:202:0:</font>
<br><font size=2 face="sans-serif">+ Illegal polymorphic or
qualified type: forall conn.</font>
<br><font size=2 face="sans-serif">+
(IConnection conn) =></font>
<br><font size=2 face="sans-serif">+
conn -> b</font>
<br><font size=2 face="sans-serif">+ In the type signature
for `withWConn':</font>
<br><font size=2 face="sans-serif">+ withWConn :: forall
b.</font>
<br><font size=2 face="sans-serif">+
ConnWrapper -> (forall conn. (IConnection
conn) => conn -> b) -> b</font>
<br><font size=2 face="sans-serif">+-}</font>
<br><font size=2 face="sans-serif">hunk ./HDBC.cabal 13</font>
<br><font size=2 face="sans-serif">-Build-Depends: base, mtl</font>
<br><font size=2 face="sans-serif">+</font>
<br><font size=2 face="sans-serif">+Build-Depends: base, mtl, old-time,
bytestring, containers</font>
<br><font size=2 face="sans-serif">+-- breaks backwards compability with
ghc 6.6.1</font>
<br><font size=2 face="sans-serif">+</font>
<br><font size=2 face="sans-serif">}</font>
<br>
<br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">---</span><br>
<br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">This e-mail may contain confidential and/or privileged information. If you </span><br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">are not the intended recipient (or have received this e-mail in error) </span><br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">please notify the sender immediately and destroy this e-mail. Any </span><br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">unauthorized copying, disclosure or distribution of the material in this </span><br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">e-mail is strictly forbidden.</span><br>