| CARVIEW |
Select Language
HTTP/2 301
server: nginx
date: Wed, 04 Feb 2026 01:22:54 GMT
content-type: text/html
content-length: 115
location: https://gitlab.haskell.org/ghc/ghc/-/issues/25960
cache-control: no-cache
nel: {"max_age": 0}
x-gitlab-meta: {"correlation_id":"01KGK3XHTA918Y00T0CKDBCYV8","version":"1"}
x-request-id: 01KGK3XHTA918Y00T0CKDBCYV8
x-runtime: 0.036691
HTTP/2 200
server: nginx
date: Wed, 04 Feb 2026 01:22:55 GMT
content-type: text/html; charset=utf-8
content-length: 68897
cache-control: max-age=0, private, must-revalidate
content-security-policy:
etag: W/"ff21486c76cf871f2ddfab3ef4b02fed"
nel: {"max_age": 0}
permissions-policy: interest-cohort=()
referrer-policy: strict-origin-when-cross-origin
set-cookie: _gitlab_session=8f73f1c30c39c92ffaecd9a746a8cfc1; 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":"01KGK3XJ3X4WW7YZJ16YHTKSGZ","version":"1"}
x-permitted-cross-domain-policies: none
x-request-id: 01KGK3XJ3X4WW7YZJ16YHTKSGZ
x-runtime: 0.577909
x-ua-compatible: IE=edge
x-xss-protection: 1; mode=block
HEAD regression (tcMatches: multiple arguments in EmptyCase) (#25960) · Issues · Glasgow Haskell Compiler / GHC · GitLab
Skip to content
Admin message
Due to a large amount of spam we do not allow new users to create repositories, they are "external" users. If you are a new user and want to create a repository, for example for forking GHC, open a new issue on ghc/ghc using the "get-verified" issue template
HEAD regression (tcMatches: multiple arguments in EmptyCase)
Summary
GHC HEAD (as of commit 5977c6a1) panics on a valid program that successfully compiles with GHC 9.12 or earlier.
Steps to reproduce
Compile this program:
{-# LANGUAGE GHC2021 #-}
{-# LANGUAGE LambdaCase #-}
module Bug where
import Data.Void (Void)
f :: (forall a. Void -> a) -> (forall a. Void -> a)
f g = g
absurd :: Void -> a
absurd = f (\case)
-- absurd = \case -- Doesn't panic
On GHC 9.12 or earlier this succeeds, but with GHC HEAD, this fails with:
$ ~/Software/ghc-9.13.20250411/bin/ghc Bug.hs
[1 of 1] Compiling Bug ( Bug.hs, Bug.o )
<no location info>: error:
panic! (the 'impossible' happened)
GHC version 9.13.20250411:
tcMatches: multiple arguments in EmptyCase
This regression was most likely introduced in commit cce869ea (Error message with EmptyCase and RequiredTypeArguments (#25004)). cc @int-index
Expected behavior
The program continues to compile successfully using GHC HEAD.
Environment
- GHC version used: HEAD (commit 5977c6a1)
Optional:
- Operating System: Ubuntu 22.04
- System Architecture: x86-64
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information