Yesod devel issue: cannot satisfy -package-key main

Hi folks! I haven't used Yesod quite a while; now when I'm trying to run development server of freshly scaffolded PostgreSQL stack's template I see this error message: Rebuilding application... (using cabal) Starting development server... *<command line>: cannot satisfy -package-key main* (use -v for more information) Exit code: ExitFailure 1 I've found several issues on the web, however I wasn't able to resolve this. I've tried to upgrade my Yesod binary first via `stack install yesod-bin`. Now I have: stack exec yesod version *yesod-bin version: 1.4.18.7* stack --version *Version 1.1.2 x86_64 hpack-0.14.0* I also tried to comment out the test suite section in cabal file, but devel server still fails to run. Can someone clarify how to deal with this?

Can you try upgrading to yesod-bin-1.5.0? Some of the issues with the old
yesod-bin are documented at:
http://www.yesodweb.com/blog/2016/11/new-yesod-devel-server
Looking at that error message, I'm going to take a (very bad) guess and say
you're using GHC 8. If that's the case, yesod-bin 1.4 is definitely _not_
compatible with it.
On Mon, Jan 16, 2017 at 4:34 AM, Geraldus
Hi folks!
I haven't used Yesod quite a while; now when I'm trying to run development server of freshly scaffolded PostgreSQL stack's template I see this error message:
Rebuilding application... (using cabal) Starting development server... *<command line>: cannot satisfy -package-key main* (use -v for more information) Exit code: ExitFailure 1
I've found several issues on the web, however I wasn't able to resolve this.
I've tried to upgrade my Yesod binary first via `stack install yesod-bin`. Now I have:
stack exec yesod version *yesod-bin version: 1.4.18.7*
stack --version *Version 1.1.2 x86_64 hpack-0.14.0*
I also tried to comment out the test suite section in cabal file, but devel server still fails to run.
Can someone clarify how to deal with this?
_______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.

I've had rebuild `yesod-bin` using same snapshot as in project, which was selected as 6.27. Otherwise `yesod devel` reported an error about compiler version mismatch. But default compiler is GHC 8, you're right. I was able to resolve this doing `stack install --resolver=6.27` using sources from Git HEAD and removing `yesod` binary already installed in ~/.stack/snapshots/<arch>/lts-6.27/7.10.3/bin. Thanks.
participants (2)
-
Geraldus
-
Michael Snoyman