Cabal Server Files
For some reason, cabal isn't creating an executable for my program. When I run cabal build
, I get this output:
Dec 03, 2012 Cabal Online - Discuss Cabal Online server development here. Cabal PH Secret Files. Disclaimer: This page is NOT, in any way, affiliated to LevelUp! Games or Playpark.
A subsequent cabal run
gives me this error:
Sure enough, there is no server
binary in dist/build/server/server
. The temp files are, however, in dist/build/server/server-temp/
.
My .cabal
file:
My directory structure (including dist
from cabal build
):
The main
definition:
1 Answer
it's all there in the message:
you need a source file defining the Main module
and exporting a main
function:
and your main-is
field in your .cabal file should point to this.
If you have all this you should be able to compile it into an executable.
Here is a nice intro: How to write a Haskell programm
update
Best Cabal Server
as it turn out the module was named Core.Main
- make sure you have one module Main
too - you can always add a top level main.hs
and reexport just the main
from Core.Main
too