-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ghc: panic! (the 'impossible' happened)
when starting new project
#1833
Comments
I previously also had problems with GHC compiling yesod projects. For me it was probably due to insufficient memory. GHC can sometime take many giga bytes. Also, you could upgrade to a newer version of GHC. With stack resolver lts-22.0 I have GHC version 9.4.8. See stackage.org for what LTS versions exist. |
I've updated the GHC to the newest version, from |
Your log above suggests you're using: Check the stack.yaml file, look for What LTS do you currently have set? 8GB are not much but with swap and if it's not a large web app it should work, I think. |
I'm new to Haskell, I wanted to learn by creating a web app in Yesod. I installed the Haskell and all the stuff - here are more details about my setup https://gist.github.com/mateuszjarzyna/4779abf413593a1b7298f14f865c516d
So I created the new app by
stack new api yesodweb/mongo
, then run the project bystack exec -- yesod devel
, some stuff was downloaded and an error happenand here is what I see in the browser:
It is my first touch of Haskell, so I have no idea how to debug that error
The text was updated successfully, but these errors were encountered: