[GHC] #2982: GHCi crashes if a :def command gets a
pattern-match error
GHC
trac at galois.com
Thu Feb 5 11:49:00 EST 2009
#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 <marlowsd at gmail.com>
* 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
More information about the Glasgow-haskell-bugs
mailing list