#7354: Panic with recursion-schemes package and unit
------------------------+---------------------------------------------------
 Reporter:  amplitwist  |          Owner:                
     Type:  bug         |         Status:  new           
 Priority:  normal      |      Component:  GHCi          
  Version:  7.6.1       |       Keywords:                
       Os:  Linux       |   Architecture:  x86_64 (amd64)
  Failure:  GHCi crash  |       Testcase:                
Blockedby:              |       Blocking:                
  Related:              |  
------------------------+---------------------------------------------------
 Steps to reproduce:

 1. Install GHC 7.6.1 and recursion-schemes
 ([http://hackage.haskell.org/package/recursion-schemes])
 2. Create a new .hs file with the following
 --------------
 import Data.Functor.Foldable

 foo = embed ()
 --------------
 3. Load the file into GHCI
 4. Evaluate foo

 *Main> foo

 <interactive>:162:1:
     Can't find interface-file declaration for variable foo
       Probable cause: bug in .hi-boot file, or inconsistent .hi file
       Use -ddump-if-trace to get an idea of which file caused the error
     In the expression: foo
     In an equation for `it': it = foo
 *Main> :t foo

 <interactive>:1:1:
     Can't find interface-file declaration for variable foo
       Probable cause: bug in .hi-boot file, or inconsistent .hi file
       Use -ddump-if-trace to get an idea of which file caused the error
     In the expression: foo

 5. Evaluate ``embed ()'' directly at the REPL
 *Main> embed ()
 ghc: panic! (the 'impossible' happened)
   (GHC version 7.6.1 for x86_64-unknown-linux):
         nameModule
 <<details unavailable>>

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

 System Information:

 [andy@vanir ~]$ uname -a
 Linux vanir 3.5.6-1-ARCH #1 SMP PREEMPT Sun Oct 7 19:30:49 CEST 2012
 x86_64 GNU/Linux
 [andy@vanir ~]$ ls asdf.hi # the would-be .hi file
 ls: cannot access asdf.hi: No such file or directory

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7354>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to