The compiler tells me to split module names depending on the directory structure. But it also complains if two files in different directories have the same name. Example:
I have a Main.elm file which has the main and update functions. I have some initialisation stuff in a file Init/Init.elm with a module Init. But the compiler complains about this.
When I change the Init.elm file to Main.elm, and the module to Init.Main, the compiler complains that I have two modules called Main, even though one is named Init.Main .
This means I will have to come with unique names for the last part of every module, making things convoluted.
Is there a better way of doing this?