I am writing a small Scotty application and decided after using Yesod that I cannot live without wai-handler-devel to reload the code for me. I use it cabal sandboxas a good little boy, but every time I run my development executable (through cabal run), I get an error Could not find module Web.Scotty. However, when I create the application executable (and not the development executable), everything works fine.
Two executable files have the same dependencies in the file cabal. The application executable has mainwhich the handler uses wai run, and the development executable uses runQuitfrom wai-handler-devel.
I assume this is a sandbox problem, because the usual setup seems to be to use runhaskella script to start the development server - but since my application is isolated from the sandbox, it does not even find the import DevelServer.
source
share