ddssff / cabal-debian

Create a Debianization by examining a .cabal file.
Other
16 stars 10 forks source link

Detect packages that use Template Haskell #48

Open nomeata opened 9 years ago

nomeata commented 9 years ago

Hi,

this is a tricky one: As not all architectures in Debian support Template Haskell, every TH-using package needs a build-dependency on the virtual package ghc-ghci.

Now the correct way to detect the use of Template Haskell is looking for {-# LANGUAGE TemplateHaskell #-} in the sources. But I’m not sure if you want to go down that route...

Anyways, I wanted to record this, without pushing for it.

Greetings, Joachim

ddssff commented 9 years ago

Wouldn't we just look for a template-haskell dependency in the cabal file?

nomeata commented 9 years ago

Unfortunately, No. There are packages that depend on template-haskell to get access to the data type, without using any splices at build time.