Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
bd881529
Commit
bd881529
authored
Oct 15, 2002
by
simonmar
Browse files
[project @ 2002-10-15 11:01:29 by simonmar]
Don't need to export Exception.try or Exception.throwDyn here.
parent
2df806a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/utils/Panic.lhs
View file @
bd881529
...
...
@@ -13,13 +13,7 @@ module Panic
(
GhcException(..), ghcError, progName,
panic, panic#, assertPanic, trace,
showException, showGhcException, Exception.throwDyn, tryMost,
Exception.Exception,
Panic.try, -- try :: IO a -> IO (Either Exception a)
-- This is Control.Exception.try in the new library story
-- Exception.tryAllIO in GHC 4.08
-- So it usefully hides the difference
showException, showGhcException, tryMost,
#if __GLASGOW_HASKELL__ <= 408
catchJust, ioErrors, throwTo,
...
...
@@ -138,7 +132,7 @@ assertPanic file line =
-- files, for example.
tryMost :: IO a -> IO (Either Exception.Exception a)
tryMost action = do r <-
t
ry action; filter r
tryMost action = do r <-
myT
ry action; filter r
where
filter (Left e@(Exception.DynException d))
| Just ghc_ex <- fromDynamic d
...
...
@@ -150,9 +144,9 @@ tryMost action = do r <- try action; filter r
= return other
#if __GLASGOW_HASKELL__ <= 408
t
ry = Exception.tryAllIO
myT
ry = Exception.tryAllIO
#else
t
ry = Exception.try
myT
ry = Exception.try
#endif
\end{code}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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