[Pkg-haskell-maintainers] Bug#726372: build on arches w/o TH

Joey Hess joeyh at debian.org
Tue Oct 15 03:45:24 UTC 2013


Package: haskell-lens
Severity: normal
Version: 3.9.0.2
Tags: patch

Lens FTBFS on arches without TH, but the template haskell is only used
for deriving lenses for records (and some dependencies of error lenses).
Lens is otherwise useable on those arches. For example, code might only
want to use a lens into tuples, or maps, or any of the many other
provided lenses. Or a package that does need record lenses could be
fixed to build on all arches rather simply by pasting in the boilerplate
getters and setters, and could then use the rest of lens.

I have been avoiding using lens for some time because of this
portability problem. But it strikes me that the rest of the haskell
community is not likely to do that, and it seems to be getting more
widely used. So I think Debian should consider modifying lens to build
without TH on arches that lack it. 

The modifications turn out to be fairly reasonable. Patches attached.

There is a risk that some package that currently builds on arches
without TH currently tests that lens is not available, and avoids using
Control.Lens.TH. With this patch, such a test would be defeated, and the
package's build would be broken. I feel this is an fairly unlikely
scenario, and one that would be quickly caught in the regular haskell
package rebuild cycle, and would be easily fixed.

-- 
see shy jo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-remove-hlint-ANNotations.patch
Type: text/x-diff
Size: 7017 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-haskell-maintainers/attachments/20131014/13d9e377/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-packaging-changes.patch
Type: text/x-diff
Size: 2501 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-haskell-maintainers/attachments/20131014/13d9e377/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-add-without-th-flag.patch
Type: text/x-diff
Size: 4214 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-haskell-maintainers/attachments/20131014/13d9e377/attachment-0002.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-haskell-maintainers/attachments/20131014/13d9e377/attachment.sig>


More information about the Pkg-haskell-maintainers mailing list