Can containers depend on Template Haskell?

Henning Thielemann lemming at
Sun Dec 5 08:35:43 CET 2010

On Sat, 4 Dec 2010, Mark Lentczner wrote:

> I'm not being dense here. I understand the implications of such a choice 
> in a library. But I can easily imagine libraries where the developers 
> will decide to offer slightly different APIs on different platforms, 
> Since we have template haskell and cpp preprocessing available, these 
> scenarios will arise.

Why not putting those things into separate packages like ghc (compiler 
dependent), unix, alsa (OS dependent), cpuid (processor dependent)? Clean 
and easy, no need for hacks or complicated Cabal files.

More information about the Libraries mailing list