[Pkg-haskell-maintainers] Bug#652507: c2hs: fails reading its own intermediate representation (.chi)

Dafydd Harries daf at debian.org
Sat Dec 17 22:21:10 UTC 2011

Package: c2hs
Version: 0.16.3-2
Severity: important
Tags: upstream patch

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.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.1.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages c2hs depends on:
ii  libc6     2.13-23
ii  libffi5   3.0.10-3
ii  libgmp10  2:5.0.2+dfsg-2

c2hs recommends no packages.

c2hs suggests no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: c2hs.diff
Type: text/x-diff
Size: 765 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-haskell-maintainers/attachments/20111217/14954931/attachment.diff>

More information about the Pkg-haskell-maintainers mailing list