Reputation: 11
Every time I try to load my file i get the error "Module "Main" already loaded". The file i am trying to load loads another module, the module loads by itself fine. The file only loads that module and nothing else. Can anyone tell me why it is giving me this error? Thanks
Upvotes: 1
Views: 1045
Reputation: 2571
This is a Hugs error, and honestly my first recommendation would be to switch to GHC. Is there a particular reason you're using Hugs?
However, if you don't want to or can't switch, this page says the following:
This error happens if you load two anonymous modules into (Win)Hugs. The solution is to name the modules concerned and to set up the appropriate import/export structures.
You can use this page as a guide for setting up the module names and import/export structures.
Upvotes: 4