Open
Description
General summary/comments (optional)
With the ghc version that stack installs, I get an error when trying to compile and install a project using stack install
, this is the error:
Prelude.chr: bad argument: 3959423081
This is weird because if I were to use ghcup to install stack and ghc, and also enable ghcup's stack integration (mentioned here: https://www.haskell.org/ghcup/guide/#stack-integration) this error doesn't occur.
Steps to reproduce
For example:
- Clone this project for example: https://github.com/xmonad/xmonad
- Run
stack init
in the directory that you cloned the project into. - Run
stack install
, you might be met with the error above if you use stack to install ghc and not ghcup.
Expected
The project compiles and installs successfully.
Actual
What actually happened.
stack install
Prelude.chr: bad argument: 3959423081
Stack version
stack --version
Version 2.9.3, Git revision 6cf638947a863f49857f9cfbf72a38a48b183e7e x86_64 hpack-0.35.1
Method of installation
- Via the distro package for stack in Debian 11
Platform
x86-64, Debian 11