Skip to content

stack install yesod-bin --install-ghc returns ghc: panic!, report this as a bug

Summary

I develop a micro-service, I follow yesod quickstart guide and I get this error:

ghc: panic! (the 'impossible' happened) (GHC version 8.8.4 for x86_64-unknown-linux): Prelude.chr: bad argument: 2566914051 Please report this as a GHC bug: https://www.haskell.org/ghc/reportabug -- While building simple Setup.hs (scroll up to its section to see the error) using: /nix/store/5vvra8yfczgpxqni0hbr8jjsz32rsari-ghc-8.8.4/bin/ghc-8.8.4 -rtsopts -threaded -clear-package-db -global-package-db -hide-all-packages -package base -main-is StackSetupShim.mainOverride -package Cabal-3.0.1.0 /home/alex/.stack/setup-exe-src/setup-mPHDZzAJ.hs /home/alex/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs -o /home/alex/.stack/setup-exe-cache/x86_64-linux-nix/tmp-Cabal-simple_mPHDZzAJ_3.0.1.0_ghc-8.8.4

Steps to reproduce

  1. stack new my-project yesodweb/sqlite && cd my-project
  2. stack install yesod-bin --install-ghc

Expected behavior

Install without errors

Environment

  • GHC version used: The Glorious Glasgow Haskell Compilation System, version 9.0.2

Optional:

  • Operating System: Linux nixos 5.15.70 #1 (closed)-NixOS
  • System Architecture:
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information