Dear Clint,

Am Mittwoch, den 04.01.2012, 19:02 +0000 schrieb Clint Adams:
> On Wed, Jan 04, 2012 at 06:35:52PM +0000, Joachim Breitner wrote:
> > the fact that a package is using Template Haskell is not represented in
> > the cabal file, so there is actually nothing to do for Neil. It should
> > be noted, though, in debian/control by a Build-Dependency on ghc-ghci.
> 
> I am confused, because many packages (for example yesod-core and
> snap-server), have cabal dependencies on "template-haskell".

and it is confusing indeed. template-haskell is a library that provides
the Language.Haskell.TH module. So you can have a library that uses
these functions, without actually requiring a TH-capable compiler (e.g.
it only provides functions based on these that a user _might_ use. You
can also have (as it seems to be the case here) that a library uses the
TemplateHaskell feature without actually using any of the symbols
defined in the template-haskell library.

Rule of thumb: If TemplateHaskell appears in the cabal file or a
LANGUAGE pragma, then the Debian package ought to depend on the ghc-ghci
virtual package.

Greetings,
Joachim

-- 
Joachim "nomeata" Breitner
Debian Developer
  nome...@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C
  JID: nome...@joachim-breitner.de | http://people.debian.org/~nomeata

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to