On Sun, Sep 23, 2012 at 04:10:56PM +0200, Jan Stolarek wrote: > I don't mind sacrificing encapsulation within the package itself. If > it works for project as big as Yesod it should work for me. Yesod uses the CPP solution, too (e.g. [1]). Cheers, Simon [1] https://github.com/yesodweb/shakespeare/blob/master/shakespeare/Text/Shakespeare.hs