Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
916214e4
Commit
916214e4
authored
Jun 18, 2001
by
sof
Browse files
[project @ 2001-06-18 21:45:49 by sof]
For GHCen < 5.00, assume that Exception.throwTo is Exception.raiseInThread
parent
ee439548
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/main/Main.hs
View file @
916214e4
{-# OPTIONS -fno-warn-incomplete-patterns #-}
-----------------------------------------------------------------------------
-- $Id: Main.hs,v 1.7
3
2001/06/18
08:56:09 simonpj
Exp $
-- $Id: Main.hs,v 1.7
4
2001/06/18
21:45:49 sof
Exp $
--
-- GHC Driver program
--
...
...
@@ -59,18 +59,23 @@ import Directory ( doesFileExist )
import
IOExts
(
readIORef
,
writeIORef
)
import
Exception
(
throwDyn
,
Exception
(
DynException
)
)
import
System
(
getArgs
,
exitWith
,
ExitCode
(
..
)
)
import
Monad
import
List
import
Maybe
#
ifndef
mingw32_TARGET_OS
import
Concurrent
(
myThreadId
)
#
ifdef
__GLASGOW_HASKELL__
<
500
import
Exception
(
raiseInThread
)
#
define
throwTo
raiseInThread
#
else
import
Exception
(
throwTo
)
#
endif
import
Posix
(
Handler
(
Catch
),
installHandler
,
sigINT
,
sigQUIT
)
import
Dynamic
(
toDyn
)
#
endif
import
Monad
import
List
import
Maybe
-----------------------------------------------------------------------------
-- Changes:
...
...
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