GHC will create a program if there is a module named Main
and a function named main
inside it. In your case you have main
, but not in Main
.
Either remove the module MouseMove
header from MouseMove.hs
, or pass -main-is MouseMove.main
to GHC.