[C2hs] GHC 6.6 support patch

Einar Karttunen ekarttun at cs.helsinki.fi
Sat Sep 2 09:15:03 EDT 2006


This switches to the new Set API. GHC 6.2 only supports the old one, 6.4 both and 6.6 only the new one.

- Einar Karttunen
-------------- next part --------------

New patches:

[Switch to new Data.Set API as required by GHC 6.6
Einar Karttunen <ekarttun at cs.helsinki.fi>**20060902110758] {
hunk ./c2hs/c/CLexer.x 79
-import qualified Data.Set as Set (mkSet, addToSet, elementOf)
+import qualified Data.Set as Set (fromList, insert, member)
hunk ./c2hs/c/CLexer.x 595
-  if ident `Set.elementOf` tdefs
+  if ident `Set.member` tdefs
hunk ./c2hs/c/CLexer.x 708
-	  alex_tdefs = Set.mkSet builtins
+	  alex_tdefs = Set.fromList builtins
hunk ./c2hs/c/CLexer.x 753
-                             POk s{alex_tdefs = tdefs `Set.addToSet` ident} ())
+                             POk s{alex_tdefs = ident `Set.insert` tdefs} ())
hunk ./c2hs/c/CParser.y 90
-import Data.Set	  (Set, mkSet, union, elementOf)


[Cancel previous patch installing the c2hs library
Manuel M T Chakravarty <chak at cse.unsw.edu.au>**20060525181726] 
[Teach c2hs about C style line pragmas for accurate source location info.
Duncan Coutts <duncan.coutts at worc.ox.ac.uk>**20060524174216] 
[Fix typo
Jelmer Vernooij <jelmer at samba.org>**20060208004733] 
[Install helper library for use by other packages
Jelmer Vernooij <jelmer at samba.org>**20060207224532] 
[Use PreCST for CParser to avoid unnecessary module deps
Duncan Coutts <duncan.coutts at worc.ox.ac.uk>**20060523142434] 
[Make the C parser test prog build again.
Duncan Coutts <duncan.coutts at worc.ox.ac.uk>**20060523135822
 This program is useful for reproducing C parser errors
 for when users send in their .i files.
 Just run:
 ./parse foo.i
 Build using:
 ghc --make Main.hs -o parse ../i -i../../../base/general
   -i../../../base/admin -i../../../base/errors
   -i../../../base/state -i../../../base/syms -i../../state
[change handling of marshallers for dynamic function hooks
Udo Stenzel <u.stenzel at web.de>**20060515142639] 
[minor beautification
Udo Stenzel <u.stenzel at web.de>**20060430215444] 
[support fun hooks for FunPtrs inside structs
Udo Stenzel <u.stenzel at web.de>**20060429235956
 This is a bit hackish at times, as I cut-and-paste-coded a bit.  Though
 pending cleanup, it seems to work.
[improve translation of apath to identifier
Udo Stenzel <u.stenzel at web.de>**20060429235900] 
[allow call hooks for FunPtrs inside structures
Udo Stenzel <u.stenzel at web.de>**20060429155023] 
[Allow escape sequences in the file name part of #line directives
Duncan Coutts <duncan.coutts at worc.ox.ac.uk>**20060406214715] 
[darcs.haskell.org repo
Manuel M T Chakravarty <chak at cse.unsw.edu.au>**20060514224852] 
[calculate size of embedded arrays correctly
Udo Stenzel <u.stenzel at web.de>**20060502231635] 
[Adapt Setup.hs to Cabal in GHC 6.4.2
Manuel M T Chakravarty <chak at cse.unsw.edu.au>**20060429012513
   ** WARNING: This will break the build on GHC 6.4.1 and earlier! **
   On GHC 6.4.1 and earlier omit this patch or follow the instructions
   in `Setup.hs'.
[Version 0.14.6 credits
Manuel M T Chakravarty <chak at cse.unsw.edu.au>**20060429012404] 
[tolerate variadic functions
Udo Stenzel <u.stenzel at web.de>**20060423234358
 This adds support for pointers to variadic functions in structs.  They
 cannot be called, but the rest of the struct is accessible without c2hs
 bombing out.
[enum define workaround example
Manuel M T Chakravarty <chak at cse.unsw.edu.au>**20051219124518] 
[TAG c2hs 0.14.5
Manuel M T Chakravarty <chak at cse.unsw.edu.au>**20051212115038] 
Patch bundle hash:

More information about the C2hs mailing list