Handle ArgPat reverting in head.hackage
ArgPat was reveted from TH in favour of InvisP data constructor (ghc!12340 (closed))
This patch fixes compilation errors occured after this change.
There also was an error in singletons introduced by this commit (ghc!12328 (closed)), I fixed it in a separate commit.
I got strange GHC panic on futhark compilation:
[282 of 313] Compiling Futhark.CLI.Test ( src/Futhark/CLI/Test.hs, dist/build/Futhark/CLI/Test.o, dist/build/Futhark/CLI/Test.dyn_o )
<no location info>: error:
    panic! (the 'impossible' happened)
  GHC version 9.11.20240404:
	completeCall
  getResults_sYjXW
  Stop[BoringCtxt] TestStatus
                   -> State# RealWorld -> (# State# RealWorld, () #)
  Call stack:
      CallStack (from HasCallStack):
        callStackDoc, called at compiler/GHC/Utils/Panic.hs:190:37 in ghc-9.11-inplace:GHC.Utils.Panic
        pprPanic, called at compiler/GHC/Core/Opt/Simplify/Iteration.hs:2116:9 in ghc-9.11-inplace:GHC.Core.Opt.Simplify.Iteration
  CallStack (from HasCallStack):
    panic, called at compiler/GHC/Utils/Error.hs:507:29 in ghc-9.11-inplace:GHC.Utils.Error
Please report this as a GHC bug:  https://www.haskell.org/ghc/reportabug
Let's see if it will occur on CI or this is a problem of my local setup.
Merge request reports
Activity
- Resolved by Ryan Scott
Thanks for fixing the singletons one! These failures got discussed briefly here: !360 (comment 556109)
 
added 1 commit
- ee8a83a9 - ArgPat was reveted from TH in favour of `InvisP` data constructor
 
- Resolved by Ryan Scott
This MR does most of what I'd expect, although I am surprised that this doesn't revert everything from !354 (merged). For instance, what about the changes to
bifunctors,deriving-compat, and other libraries? These still havehead.hackagepatches, but they shouldn't be required anymore. 
@RyanGlScott I have no write access to the master branch, so please merge it
mentioned in commit 06b499d3
mentioned in merge request !365 (merged)