Skip to content

ghc: panic! (the 'impossible' happened) (GHC version 8.8.4 for x86_64-apple-darwin): Prelude.chr: bad argument: 1543503875. yesod installation as per tutorial

Summary

Trying out yesod as per tutorial in this link https://www.yesodweb.com/page/quickstart

Steps to reproduce

Completed steps as under

step 1. curl -sSL https://get.haskellstack.org/ | sh

step 2. stack new my-project yesodweb/sqlite && cd my-project

On step 3. stack install yesod-bin --install-ghc

I encountered the above error asking me to file a bug report.

A print screen of the entire error is attached as a pdf fileerror_report.pdf

Expected behavior

Expected GHC to be installed

Environment

Mac OS Monterey 12.4 on mac book air

On running step no 3 it gave the error as per subject line.

Optional:

I do not have Xcode installed.. only command line tools..

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information