XIO

xWire

Posts from every feed QUEST has found across the web — blogs, news, podcasts, channels and more.

GHC activity

Tim McGilchrist commented on merge request !16947 at Glasgow Haskell Compiler / GHC

Interesting, I hadn't considered the RiscV / LoongArch linker implications, but if they're required for a merge then I'll need to. The problem was the .Ldwstr_ labels could reach object files on both architectures which would break -fobject-determinism with -g. The simplest solution is get mkDwarfStringTable to number strings in order of first occurrence, which is the order .debug_str already uses. This changes the labels to .Ldwstr_, and the table is then passed into pprDwarfInfo. C compilers…

Mikolaj Konarski commented on issue #28266 at Glasgow Haskell Compiler / GHC

The bot adds the following related defect: DWARF 5, section 6.4.2 is not followed where it's supposed to be. Found while checking this issue: in the DW_CFA_expression and DW_CFA_val_expression rules of a register other than Sp, pprSetUnwind writes Sp as DW_OP_call_frame_cfa, which DWARF 5 excludes from the operands of these two instructions. For such a rule for R1, rbx on x86-64, lldb 18.1.3 gives the register as unavailable; gdb 15.1 gives the value the statement names, but aborts with an…

Enrico Maria De Angelis commented on merge request !16887 at Glasgow Haskell Compiler / GHC

Removing what? The _ :: SrcSpan parameter? If I remove that, and still want to use LogAction for the signature, that means changing LogAction like this: type LogAction = LogFlags -> MessageClass - -> SrcSpan -> SDoc -> IO () And that breaks any function that needs that SrcSpan, because the MessageClass is not always expected to contain the SrcSpan, it only does so when it is a InternalMCDiagnostic. For instance, look at this parLogAction :: LogQueue -> LogAction parLogAction log_queue log_flags…

Oleg Grenrus commented on issue #28240 at Glasgow Haskell Compiler / GHC

I don't see a way you can fix this. You need to expose internals of Name. I have written plenty of code relying on it, for example looking at constructed quotations in tests without splicing them, checking that they indeed are constructed as expected. You could discourage usage of Name internals (and mkNameG etc), but making Name completely opaque will make current legitimate usage impossible. 👎 from me.

Vladislav Zavialov commented on issue #27424 at Glasgow Haskell Compiler / GHC

Done in ab8b5b06 commit ab8b5b0699430d37315e808ea518a1380c88bbe2 Author: Vladislav Zavialov Date: Wed Oct 14 18:41:09 2026 +0200 Curried contexts in prefix GADT constructors (#27424) Prefix GADT constructor declarations now accept multiple consecutive contexts, equivalent to a single conjoined context: data G a where MkCurried :: C a => (D a, E a) => G a MkConjoined :: (C a, D a, E a) => G a This is a step towards GHC Proposal #402 "Stable GADT constructor syntax". To represent multiple…

Vladislav Zavialov commented on issue #27423 at Glasgow Haskell Compiler / GHC

Done in eaa95a6f commit eaa95a6f1136a9379cad2d334708355d70d08908 Author: Andrei Borzenkov Date: Tue Aug 11 10:30:03 2026 +0400 Parentheses in prefix GADT constructors (#27423) Updated `splitLHsGadtTy` to allow looking through the parentheses for inner binders. General example of a code pattern that's allowed now: data S a where MkS :: (forall a. S a) That should work now with any combination of nested foralls and parentheses. We don't perform parenthesis unwrapping for record GADT constructors…

Simon Peyton Jones commented on issue #24404 at Glasgow Haskell Compiler / GHC

I think the solution here is that a quote should capture the scope that it is defined in, I am not following this thread properly, but this particular sentence caught my eye, because it may (just possibly) overlap with work that Apporv is doing in the long-running !15868. I'm tagging him here @ani. The issue that he and I have been working on is this. Suppose we have {-# LANGUAGE RebindableSyntax #-} module Lib where import Wombat( (>>=) ) fooQuote = [| ...(do { x<-e1; e2 })... |] module Client…