S. Alexander Jacobson wrote:
I've since modified sp to add a main-is which prevents the panic and
replaces it with a complaint about Main e.g.
runghc -i.haskell_cache/http_searchpath.org-default.map.cache -main-is
HAppS.Protocols.HTTP.FileServer.main
.haskell_cache/http_searchpath.org-default.map.cache/HAppS/Protocols/HTTP/FileServer.hs
--http-port=7000
<interactive>:1:211:
Failed to load interface for `Main':
Use -v to see a list of the files searched for.
runghc expects to run Main.main, I'm afraid it doesn't pay any attention to the
-main-is flag (this flag is just passed along to GHC). We do have a :main
command that runghc really ought to use, but unfortunately it's not quite that
simple. I'll create a ticket, thanks for the bug report.
Instead of runghc, as a workaround you could use ghc -e directly.
Cheers,
Simon
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs