Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
78d56448
Commit
78d56448
authored
Apr 17, 2013
by
parcs
Committed by
ian@well-typed.com
Apr 21, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print details of panic messages raised from GHCi (
#7844
)
parent
157ac08b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
ghc/InteractiveUI.hs
ghc/InteractiveUI.hs
+4
-3
No files found.
ghc/InteractiveUI.hs
View file @
78d56448
...
...
@@ -2947,9 +2947,10 @@ showException se =
-- in an exception loop (eg. let a = error a in a) the ^C exception
-- may never be delivered. Thanks to Marcin for pointing out the bug.
ghciHandle
::
ExceptionMonad
m
=>
(
SomeException
->
m
a
)
->
m
a
->
m
a
ghciHandle
h
m
=
gmask
$
\
restore
->
gcatch
(
restore
m
)
$
\
e
->
restore
(
h
e
)
ghciHandle
::
(
HasDynFlags
m
,
ExceptionMonad
m
)
=>
(
SomeException
->
m
a
)
->
m
a
->
m
a
ghciHandle
h
m
=
gmask
$
\
restore
->
do
dflags
<-
getDynFlags
gcatch
(
restore
(
GHC
.
prettyPrintGhcErrors
dflags
m
))
$
\
e
->
restore
(
h
e
)
ghciTry
::
GHCi
a
->
GHCi
(
Either
SomeException
a
)
ghciTry
(
GHCi
m
)
=
GHCi
$
\
s
->
gtry
(
m
s
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment