Skip to content

Type application and :set +c command cause panic

Type applications and the :set +c command don't play nice

{-# LANGUAGE TypeApplications #-}
a = show @Int
% ghci -ignore-dot-ghci 
GHCi, version 8.1.20160117: http://www.haskell.org/ghc/  :? for help
Prelude> :set +c
Prelude> :load Panic.hs 
[1 of 1] Compiling Main             ( Panic.hs, interpreted )
Ok, modules loaded: Main.
Collecting type info for 1 module(s) ... 
Error while getting type info from Main: ghc: panic! (the 'impossible' happened)
  (GHC version 8.1.20160117 for x86_64-unknown-linux):
        dsExpr:HsTypeOut

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

*Main>
Trac metadata
Trac field Value
Version 8.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information