[Haskell-cafe] Listing native package requirements based on cabal information

Peter Simons simons at cryp.to
Wed Mar 19 17:55:14 UTC 2014

Hi Alexander,

 > Such requirement (dependency on executable) can't be covered by the
 > cabal file (at least with 'simple' build type). 

it's true that Cabal lacks a field specifically for such run-time
dependencies, but in the absence of such a stanza using "build-tools" is
a good workaround. The build process can then determine the complete
path of, say, lsof and bake it into the binary. It's a work-around,
though, abusing build-tools in this way is far from ideal.

Take care,

More information about the Haskell-Cafe mailing list