stack-run icon indicating copy to clipboard operation
stack-run copied to clipboard

Make the functions in main available as a library

Open colonelpanic8 opened this issue 7 years ago • 0 comments

I'm the maintainer of https://github.com/taffybar/taffybar, where we currently use https://github.com/willdonnelly/dyre to handle automatic recompilation of user configuration files. This works fine when the users does not use stack, but it actually causes some problems if they would prefer to use stack. (See https://github.com/willdonnelly/dyre/issues/29 and https://github.com/taffybar/taffybar/issues/158)

It recently dawned on me that stack itself already handles almost everything that dyre is supposed to do, and that this issue could be circumvented by simply using a script to run executable specified by the user's config. What would be even better than a custom script though, is if I could built support for using stack right in to the taffybar executable. Specifically, I would like to use stack-run to execute the executable that is specified by a users configuration in the case that they are using stack for their taffybar build (cabal and stack files live in ~/.config/taffybar).

It would be great if some of the functions that currently live in Main were exposed in a module that could be used by other executables. What do you think?

colonelpanic8 avatar May 21 '18 19:05 colonelpanic8