
On Fri, Aug 17, 2007 at 08:13:55PM -0400, Thomas Hartman wrote:
Thanks Stefan. I got regex tdfa to compile on 6.7. FWIW, here's a patch, generated with darcs whatsnew against a fresh unzip of regex tdfa 0.92
I didn't patch against the darcs head because this uses a "language" progma in {-# options #-} in some file*, which ghc 6.7 didn't know what to do with, nor I.
*: Text/Regex/TDFA/RunMutState.hs: {-# LANGUAGE CPP #-} (in darcs head, which as I said, I did not patch against, rather I patched against 0.92 downloaded and unzipped.)
That's a bug, in either GHC 6.7.x (please specify the date if you can, 6.7 is a pretty wide range!) or regex-tdfa. Does {-# OPTIONS_GHC -cpp #-} (theoretically equivalent) work? What's the error message?
If there is a better way than this to send patches please advise, as I don't do this terribly often. (Actually I have no idea how to apply the below patch... is there a way?)
$ mkdir ~/.darcs
$ echo 'Thomas Hartman
[patch]
{ hunk ./Data/IntMap/CharMap.hs 1 +{-# OPTIONS -XGeneralizedNewtypeDeriving #-}
Ick. {-# OPTIONS is very strongly deprecated, since it doesn't specify a compiler but must use a compiler-specific syntax. Much better to use LANGUAGE: {-# LANGUAGE GeneralizedNewtypeDeriving #-}
+Build-Depends: regex-base >= 0.80, base >= 2.0, parsec, mtl, containers, array, bytestring
That won't work; you must indent continuation lines. Stefan