Panic on compile of file with a hole and nothing else
The example is very simple, just:
test :: Int -> Int
test = _
which produces the panic:
[1 of 1] Compiling Main ( manyIdsTest.hs, manyIdsTest.o )
ghc: panic! (the 'impossible' happened)
(GHC version 8.0.2 for x86_64-apple-darwin):
initTc: unsolved constraints
WC {wc_insol = [W] __awc :: t_awb[tau:1] (CHoleCan: _)}
I suspect that there might be a missing case when there is nothing else in scope, since
test :: Int -> Int
test = _
main :: IO ()
main = return ()
compiles just fine (i.e. with no panic, but still reports the typed hole.