Generated java module names clash when package has multiple executables
facundominguez opened this issue · 1 comments
facundominguez commented
inline-java generates java classes with names of the form Inline__<package>_<module_name>
which most of the time allows to identify the Haskell module it belongs to. Unfortunately, there is an exception: Inline__main_Main.java
If the Main module of two executables in the same package use inline-java, the classes generated for both modules will have the same name, and one of them won't be possible to load.
The simplest fix might be to include a generated unique number in the class name of Main modules.
facundominguez commented
This is not an issue really, as the appropriate class will be embedded in each of the executables.