On Thu, May 29, 2008 at 03:51:56PM -0700, Thomas Hartman wrote: echo " extra-lib-dirs: ${zlib}/lib" >> zlib.cabal echo " include-dirs: ${zlib}/include" >> zlib.cabal''; Try patching the cabal file using something like that. Marc