I implemented a custom preprocessor that creates * .hs form files * .tpl files. It is listed in Setup.hswith Build-Type: Custom. Everything works fine, but I cannot create a tar.gz package from it (using cabal sdist).
Cabal complains that it cannot find open modules that are generated by the preprocessor. Error message
cabal: Error: Could not find module with any
suffix: ["gc","chs","hsc","x","y","ly","cpphs","hs","lhs"]
How can I make Cabal know that the module is missing, or maybe add tpl to known file extensions or something else?
source
share