From 2cb06be136dfb345807fd8a6c6bf79d5d78e48e0 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Tue, 10 May 2022 17:21:50 +0200 Subject: Compile with GHC proper without cabal --- .gitignore | 4 ++++ README.txt | 13 ++++--------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index c33954f..43a1d1c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,5 @@ dist-newstyle/ +*.hi +*.o +*.dyn_hi +*.dyn_o diff --git a/README.txt b/README.txt index 1c01ead..9e5d1df 100644 --- a/README.txt +++ b/README.txt @@ -1,14 +1,10 @@ -$ cabal run -Build profile: -w ghc-9.2.2 -O1 -In order, the following will be built (use -v for more details): - - repro-0.1.0.0 (exe:test) (file Main.hs changed) -Preprocessing executable 'test' for repro-0.1.0.0.. -Building executable 'test' for repro-0.1.0.0.. -[2 of 2] Compiling Main ( Main.hs, /home/tom/code/ghc-refinefrominscope-panic-repro/dist-newstyle/build/x86_64-linux/ghc-9.2.2/repro-0.1.0.0/x/test/build/test/test-tmp/Main.o, /home/tom/code/ghc-refinefrominscope-panic-repro/dist-newstyle/build/x86_64-linux/ghc-9.2.2/repro-0.1.0.0/x/test/build/test/test-tmp/Main.dyn_o ) +$ ghc-9.2.2 Main.hs Foo.hs +[1 of 2] Compiling Foo ( Foo.hs, Foo.o, Foo.dyn_o ) +[2 of 2] Compiling Main ( Main.hs, Main.o, Main.dyn_o ) ghc: panic! (the 'impossible' happened) (GHC version 9.2.2: refineFromInScope - InScope {wild_00 $dQuote_a2GD} + InScope {wild_00 $dQuote_a2Jf} $tcT Call stack: CallStack (from HasCallStack): @@ -16,4 +12,3 @@ ghc: panic! (the 'impossible' happened) pprPanic, called at compiler/GHC/Core/Opt/Simplify/Env.hs:706:30 in ghc:GHC.Core.Opt.Simplify.Env Please report this as a GHC bug: https://www.haskell.org/ghc/reportabug - -- cgit v1.2.3-54-g00ecf