#2982: GHCi crashes if a :def command gets a pattern-match error
---------------------------------+------------------------------------------
Reporter: simonpj | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 6.10.1
Severity: normal | Resolution: fixed
Keywords: | Difficulty: Unknown
Testcase: | Os: Unknown/Multiple
Architecture: Unknown/Multiple |
---------------------------------+------------------------------------------
Changes (by igloo):
* status: new => closed
* resolution: => fixed
Comment:
Fixed in HEAD and 6.10 branch by
{{{
Fri Jan 30 09:19:19 GMT 2009 Simon Marlow <[email protected]>
* Force the result of user-defined commands
Ignore-this: f756d00cc062072e1945d63cfbbeb98
so that exceptions are reported with "*** Exception" instead of as a
panic.
}}}
{{{
Prelude> :def err (\_->return $ concat $ replicate (read "\"1\"") "a")
Prelude> :err
*** Exception: Prelude.read: no parse
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2982#comment:1>
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