Open mateuszjarzyna opened 7 months ago
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 9.8.1
to 9.8.2
, but still got the same error :(
I have 8gb free RAM, is that not enough?
Your log above suggests you're using: GHC version 8.2.2 for x86_64-apple-darwin
Check the stack.yaml file, look for resolver
and try a newer LTS (see stackage.org). stack doesn't use the system GHC but the GHC specified here.
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