Generating Haskell source files in cabal packaging -
i have package of .hs files generated spec files haskell processor (stored in subdirectory).
at present preprocessor run manually, , not work particularly version control or when used part of larger stack.
i cabal run processor, example setup.hs, package can built using cabal build or stack part of larger project without needing separate manual steps.
the input files not 1-1 output .hs files: instead, pile of .csv files read in, , differently arranged pile of .hs files output. think means can't use cabal's preprocessor support.
for present development purposes have bodged call stack build && stack exec gen-exe @ start of setup.hs. runs many times (for example runs on register @ end of build; , not enough (for example, not run if 1 of input .csv files changes, manual clean necessary).
is achieveable in cabal, , if so, need put run build commands enough , not frequently?
(this inherited package... please don't blame me)
Comments
Post a Comment