making cabal-install into a library?

Daniel Trstenjak daniel.trstenjak at gmail.com
Wed Jan 21 07:53:26 UTC 2015


Hi Jens,

> I think there are quite a few packages that make use of cabal-install and so
> yes better and safer to have a library then having always to call out to a
> subprocess...

If you're using a subprocess, then you're always using the same, the installed
cabal-install version.

With a cabal-install library, your application might use an other
version of cabal-install than the installed cabal-install binary and
this might result into issues.

Also if it seems counterintuitive, the best solution might be to have
a library that usese a subprocess ;).


Greetings,
Daniel


More information about the cabal-devel mailing list