Javascript backend fails to build pretty-show
Summary
Attempting to build pretty-show-1.10
, which builds on GHC 9.6.2, fails on the JS backend.
Running cabal build
yields the following output:
Configuring library for pretty-show-1.10..
Preprocessing library for pretty-show-1.10..
uncaught exception in Haskell main thread: TypeError: Cannot read properties of undefined (reading 't')
TypeError: Cannot read properties of undefined (reading 't')
at h$e (/home/cajun/.cabal/store/ghc-9.6.2/happy-1.20.1.1-e-happy-84e1f28529f6843509e896aa22fa8dcfe7fece3f6201f297f4fb76bb792953ab/bin/happy:9985:21)
at h$baseZCGHCziBasezizpzp_e (/home/cajun/.cabal/store/ghc-9.6.2/happy-1.20.1.1-e-happy-84e1f28529f6843509e896aa22fa8dcfe7fece3f6201f297f4fb76bb792953ab/bin/happy:85991:8)
at h$runThreadSlice (/home/cajun/.cabal/store/ghc-9.6.2/happy-1.20.1.1-e-happy-84e1f28529f6843509e896aa22fa8dcfe7fece3f6201f297f4fb76bb792953ab/bin/happy:17469:11)
at h$runThreadSliceCatch (/home/cajun/.cabal/store/ghc-9.6.2/happy-1.20.1.1-e-happy-84e1f28529f6843509e896aa22fa8dcfe7fece3f6201f297f4fb76bb792953ab/bin/happy:17437:12)
at h$mainLoop (/home/cajun/.cabal/store/ghc-9.6.2/happy-1.20.1.1-e-happy-84e1f28529f6843509e896aa22fa8dcfe7fece3f6201f297f4fb76bb792953ab/bin/happy:17432:9)
at /home/cajun/.cabal/store/ghc-9.6.2/happy-1.20.1.1-e-happy-84e1f28529f6843509e896aa22fa8dcfe7fece3f6201f297f4fb76bb792953ab/bin/happy:17893:13
at h$handleErrnoC (/home/cajun/.cabal/store/ghc-9.6.2/happy-1.20.1.1-e-happy-84e1f28529f6843509e896aa22fa8dcfe7fece3f6201f297f4fb76bb792953ab/bin/happy:11749:9)
at /home/cajun/.cabal/store/ghc-9.6.2/happy-1.20.1.1-e-happy-84e1f28529f6843509e896aa22fa8dcfe7fece3f6201f297f4fb76bb792953ab/bin/happy:11282:13
at FSReqCallback.oncomplete (node:fs:197:23)
js-backend-pretty-show-build-error.tar.gz
Steps to reproduceRun cabal build
and let it attempt to build pretty-show
.
Expected behavior
GHC should successfully build pretty-show
and should not report a TypeError.
Environment
- GHC version used: javascript-unknown-ghcjs-9.6.2
Optional:
- Operating System: Debian 12 (bookworm)
- System Architecture: x86-64