I've just been working on a standalone file. Let's call it project.nim.
Compiles and runs no problem. However, when I adapted the code to make it a bit
more compact and saved the leaner version as project-wee.nim it refuses to
compile with:
$ nim c -r project-wee.nim
Hint: used config file '/usr/local/Cellar/nim/0.19.4/nim/config/nim.cfg'
[Conf]
Hint: system [Processing]
Error: invalid module name: project-wee
Run
I've seen this error referenced here:
[https://forum.nim-lang.org/t/1541](https://forum.nim-lang.org/t/1541) but the
poster there was told it was because his source file had dots in the name. Is
it also not allowed to have hyphens in the filename?