I have to build haskell projects with stack - of course -, build some javascript, minify some assets, deploy to heroku or some provider, set some variables upon deployment, etc, etc....
--
I was thinking in the spirit of the shake --demo to make a small binary where I essentially parse that arguments to select the target to build, and why not add some optparse use to add some options on commands.
That sounds to me both :
- a perfect fit dealing magically with many issues one has to deal with anyway and
- an overkill compared to what I usually think in terms of build system.
Any opinion on which one it is ?
but as for options, there are some nice libraries like optparse-applicative or getopt-generics which allows you to specify advanced parsers and subcommands
it would be great to build a bridge between the two but I dont know what is the best option to expose the most in as little plumber code as possible