The executable is being rebuilt only when "Main" module is modified. If user changes another module, the executable is not updated.
Noticed on Eclipse 3.1, Haskell plugin version is 0.9.
The project contains two modules. One of them contains a function with a string "abc". The other module (Main) calls that function and prints the string on the screen.
When the string is changed to "abcd", the file is saved and run "Build All". The executable is not changed. Then I re-save the "Main" module again (without any modifications) and the executable becomes updated.
thanks :-) You are right, this doesn't work. It is a known limitation. With the current state, you have to artificially modify the Main module for rebuilding. Sorry about that ...
With the new parser that Thiago has done, we should be in a situation however to address that problem. It is basically an issue that can be solved by finding the Main module at build time and then running ghc over that with --make. We're doing that currently, but only with the changed files, which doesn't help in all cases.
it would be useful if the rebuild is not only for the "main". we often have projects which do not contain a main, but only modules which contain some functions which are then tested in ghci.
it would be extremely useful, if after a change in a file, any file which depends on this file is rebuilt automatically.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.