valderman / haste-compiler

A GHC-based Haskell to JavaScript compiler
http://haste-lang.org
BSD 3-Clause "New" or "Revised" License
1.45k stars 111 forks source link

Haste-cabal leaves a file in source directory #366

Open wilfriedvanasten opened 8 years ago

wilfriedvanasten commented 8 years ago

Haste-cabal (With no extra flags passed to hastec or gcc) leaves a Main.js file in my source directory. Since this is build artifact, I would expect this to be generated in the dist/build/app.js directory.

wilfriedvanasten commented 8 years ago

I looked into the verbose output generated by haste-cabal and it appears that with the -no-link option set, an "executable" is still generated by hastec. This then ends up in the source directory since the -o flag to place it in the target directory is not passed to the -no-link command.