Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
419d923e
Commit
419d923e
authored
Jun 02, 2001
by
qrczak
Browse files
[project @ 2001-06-02 09:45:51 by qrczak]
Don't panic on ExitException.
parent
c66f666e
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/main/DriverUtil.hs
View file @
419d923e
-----------------------------------------------------------------------------
-- $Id: DriverUtil.hs,v 1.2
2
2001/0
5/28 03:31:19 sof
Exp $
-- $Id: DriverUtil.hs,v 1.2
3
2001/0
6/02 09:45:51 qrczak
Exp $
--
-- Utils for the driver
--
...
...
@@ -108,7 +108,13 @@ handleDyn :: Typeable ex => (ex -> IO a) -> IO a -> IO a
handleDyn
=
flip
catchDyn
handle
::
(
Exception
->
IO
a
)
->
IO
a
->
IO
a
#
if
__GLASGOW_HASKELL__
<
501
handle
=
flip
Exception
.
catchAllIO
#
else
handle
h
f
=
f
`
Exception
.
catch
`
\
e
->
case
e
of
ExitException
_
->
throw
e
_
->
h
e
#
endif
split
::
Char
->
String
->
[
String
]
split
c
s
=
case
rest
of
...
...
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