snapframework / snap

Top-level package for the official Snap Framework libraries, includes the snaplets API as well as infrastructure for sessions, auth, and templates.
http://snapframework.com/
BSD 3-Clause "New" or "Revised" License
455 stars 68 forks source link

hint interpreter does not accept -main-is as a ghc-option #20

Open ozataman opened 12 years ago

ozataman commented 12 years ago

When placing the snap main in a module not directly at Main, we need to specify:

ghc-options: -main-is A.B.C.main

Unfortunately, this results in the following error on command line:

my-exec: Unknown interpreter error: flags: '-main-is A.B.C.main' not recognized

chowells79 commented 12 years ago

I added -main-is to the interpreter blacklist for 0.9, but I didn't test that it actually fixes this.