From 3664af59f2ea128c500cffec364c0b905cdc5207 Mon Sep 17 00:00:00 2001 From: tegwick Date: Fri, 1 May 2026 23:27:21 +0200 Subject: [PATCH] chore(debug): add -ddump-if-trace to inter-hub-models to diagnose GHC crash All 477 modules compile successfully but GHC panics at position 287,686,318 during finalization. Trace will show which .hi file is being read at crash time. Co-Authored-By: Claude Sonnet 4.6 --- flake.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/flake.nix b/flake.nix index faa4236..9ef1e1c 100644 --- a/flake.nix +++ b/flake.nix @@ -124,6 +124,7 @@ configureFlags = (old.configureFlags or []) ++ [ "--ghc-option=-O0" "--ghc-option=-fomit-interface-pragmas" + "--ghc-option=-ddump-if-trace" ]; postUnpack = (old.postUnpack or "") + '' _actual="$sourceRoot/build/Generated/ActualTypes.hs"