Haddock complains about the main module being present in multiple files.
This error message is quite misleading.
The problem is that files contain a $ symbol, usually in the very first line, used to make the control version system fill in some data inside the file (something that is no longer supported), which haddock thinks it's a haddock variable name.
Haddock complains about the main module being present in multiple files.
This error message is quite misleading.
The problem is that files contain a $ symbol, usually in the very first line, used to make the control version system fill in some data inside the file (something that is no longer supported), which haddock thinks it's a haddock variable name.
For example: https://github.com/ivanperez-keera/SpaceInvaders/blob/develop/src/Animate.hs#L1
The only thing that's necessary is to go through all the files and remove that first line with the
$Id
.