Can containers depend on Template Haskell?

Mark Lentczner markl at glyphic.com
Sun Dec 5 04:39:32 CET 2010


On Dec 4, 2010, at 3:25 PM, Henning Thielemann wrote:
> How can I safely import a package A with a specific version, if it
> exports different APIs according to a bunch of other conditions? I have
> to copy all those conditions from A.cabal into my own cabal file, even
> more the conditions of all such packages with an API that depends on
> more than the version.

Yes, that's how.

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.

	- Mark




More information about the Libraries mailing list