- Updated Wednesday, December 17th 2014 @ 12:40:36
Since yesterday I've been trying to get my Haskell bot to compile, but to no avail. I've tried several layouts of the zip archive, but none of them works.
The current layout is like this:
Main.hs Warlight2/InputStream.hs Warlight2/[other-modules]
When I upload this archive, I get the following build log:
src/Main.hs:6:8: Could not find module `Warlight2.InputStream' Use -v to see a list of the files searched for.
This suggests that the src directory is not added to the module search path. Is this something that can be fixed? Or is there something else I could do?
- Created Wednesday, December 17th 2014 @ 13:42:04
I think I've had the same issue trying to get boost to run for C++. The thing is that only the root contents of the zipfile are going to be copied to the compilation area.
Try a layout like this:
- Created Wednesday, December 17th 2014 @ 16:48:28
Just now I tried a minimal bot, with the following files, both in the root of the zip file:
module OtherModule ( failBot ) where failBot :: IO () failBot = return ()
import OtherModule main = failBot
The build log is practically the same, so no success:
src/Main.hs:1:8: Could not find module `OtherModule' Use -v to see a list of the files searched for.
DeveloperUpdated Thursday, December 18th 2014 @ 10:11:41
There was a problem with modules in the Haskell compile script. Should be fixed now. Let me know if anything is going wrong for you still
edit: put all the source files directly in the compressed folder by the way
- Created Friday, December 19th 2014 @ 17:21:34
Awesome, it works :) Thanks!