| CARVIEW |
Select Language
HTTP/2 301
server: nginx
date: Fri, 16 Jan 2026 15:04:13 GMT
content-type: text/html
content-length: 115
location: https://gitlab.haskell.org/ghc/ghc/-/issues/23171
cache-control: no-cache
nel: {"max_age": 0}
x-gitlab-meta: {"correlation_id":"01KF3NBRR4W0KKQPV1DZJKQTNS","version":"1"}
x-request-id: 01KF3NBRR4W0KKQPV1DZJKQTNS
x-runtime: 0.035136
HTTP/2 200
server: nginx
date: Fri, 16 Jan 2026 15:04:14 GMT
content-type: text/html; charset=utf-8
content-length: 65772
cache-control: max-age=0, private, must-revalidate
content-security-policy:
etag: W/"20c4ecd865224039f3aa1a1a5f62c323"
nel: {"max_age": 0}
permissions-policy: interest-cohort=()
referrer-policy: strict-origin-when-cross-origin
set-cookie: _gitlab_session=74fe14be6c9419337f5ca53d637b2f69; path=/; secure; HttpOnly; SameSite=None
vary: Accept
x-content-type-options: nosniff
x-download-options: noopen
x-frame-options: SAMEORIGIN
x-gitlab-meta: {"correlation_id":"01KF3NBS2BBT8VCK7T2CYTP0X3","version":"1"}
x-permitted-cross-domain-policies: none
x-request-id: 01KF3NBS2BBT8VCK7T2CYTP0X3
x-runtime: 0.473466
x-ua-compatible: IE=edge
x-xss-protection: 1; mode=block
Panic ltPSize (#23171) · Issues · Glasgow Haskell Compiler / GHC · GitLab
Skip to content
Panic ltPSize
Summary
Write a brief description of the issue.
Steps to reproduce
- Compile GHC at https://gitlab.haskell.org/chrismwendt/ghc/-/tree/994062840b5c77c76dfed0644ac4059d7e2de136. That commit is only one tiny commit ahead of this commit on upstream's master: https://gitlab.haskell.org/ghc/ghc/-/tree/ee17001e54c3c6adccc5e3b67b629655c14da43a.
- Clone and checkout https://github.com/chrismwendt/ghci-reload-error-monadic-bang/tree/dd610a35522ffc265bf72c58cc3717d4a1fb4101
Run a stack build with that GHC version on the path:
$ ls -lh bin
total 0
lrwxr-xr-x 1 chrismwendt staff 67B Mar 16 02:25 ghc-9.4.4@ -> /Users/chrismwendt/gitlab.haskell.org/ghc/ghc/_build/stage1/bin/ghc
$ env PATH="$PWD/bin:$PATH" stack build
Warning: Stack has not been tested with GHC versions above 9.4, and using 9.7.20230316, this may fail.
Warning: Stack has not been tested with Cabal versions above 3.8, but version 3.9.0.0 was found, this may fail.
Warning: WARNING: Ignoring monadic-bang's bounds on transformers (^>=0.5.6.2); using transformers-0.6.1.0.
Reason: allow-newer enabled.
monadic-bang > build (lib)
monadic-bang > Preprocessing library for monadic-bang-0.1.0.0..
monadic-bang > Building library for monadic-bang-0.1.0.0..
monadic-bang > [6 of 8] Compiling MonadicBang.Utils [Source file changed]
monadic-bang > [7 of 8] Compiling MonadicBang.Internal
monadic-bang >
monadic-bang > <no location info>: error:
monadic-bang > panic! (the 'impossible' happened)
monadic-bang > GHC version 9.7.20230316:
monadic-bang > ltPSize
monadic-bang > HandleFailure
monadic-bang > Call stack:
monadic-bang > CallStack (from HasCallStack):
monadic-bang > callStackDoc, called at compiler/GHC/Utils/Panic.hs:189:37 in ghc:GHC.Utils.Panic
monadic-bang > pprPanic, called at compiler/GHC/Tc/Utils/TcType.hs:2428:5 in ghc:GHC.Tc.Utils.TcType
monadic-bang > CallStack (from HasCallStack):
monadic-bang > panic, called at compiler/GHC/Utils/Error.hs:454:29 in ghc:GHC.Utils.Error
monadic-bang >
monadic-bang >
monadic-bang > Please report this as a GHC bug: https://www.haskell.org/ghc/reportabug
monadic-bang >
Expected behavior
Not panic.
Environment
Optional:
- Operating System: macOS Ventura 13.2.1
- System Architecture: ARM M1
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information