#5976: Panic in a user Template Haskell function is wrongly reported as a GHC
bug
---------------------------------+------------------------------------------
Reporter: SimonMeier | Owner: pcapriotti
Type: bug | Status: patch
Priority: normal | Milestone: 7.4.2
Component: Compiler | Version: 7.4.1
Resolution: | Keywords:
Os: Linux | Architecture: Unknown/Multiple
Failure: Compile-time crash | Difficulty: Unknown
Testcase: | Blockedby:
Blocking: | Related:
---------------------------------+------------------------------------------
Changes (by pcapriotti):
* status: new => patch
* milestone: => 7.4.2
Comment:
The problem is that in `Convert.hs` an exception is thrown containing
another exception in the thunk of its message.
The attached patch fixes the problem by forcing complete evaluation of the
error message within the exception handler.
A testcase demonstrating the problem is also attached.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5976#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs