[C2hs] [c2hs] #40: c2hs: fails reading its own intermediate representation (.chi)

c2hs cvs-ghc at haskell.org
Sun Dec 18 15:00:54 CET 2011


#40: c2hs: fails reading its own intermediate representation (.chi)
--------------------+-------------------------------------------------------
 Reporter:  guest   |        Type:  defect 
   Status:  new     |    Priority:  normal 
Milestone:          |   Component:  general
  Version:  0.16.2  |    Keywords:         
--------------------+-------------------------------------------------------
 This bug was reported against the Debian package of c2hs, at
 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=652507

 c2hs uses shown Language.C data structures as an intermediate
 representation (the .chi files), and has its own code for parsing
 them. It seems that Language.C has changed its Show instance for
 lexemes, and c2hs can no longer parse its own .chi files.

 The symptom for me is that "cabal build" fails with the following
 error message:

   c2hs: Prelude.read: no parse

 Patch attached.

 (Patch at http://bugs.debian.org/cgi-
 bin/bugreport.cgi?msg=5;filename=c2hs.diff;att=1;bug=652507)

 Greetings,
 Joachim

-- 
Ticket URL: <http://hackage.haskell.org/trac/c2hs/ticket/40>
c2hs <http://www.cse.unsw.edu.au/~chak/haskell/c2hs/>
C->Haskell, An Interface Generator for Haskell



More information about the C2hs mailing list