aboutsummaryrefslogtreecommitdiff
path: root/src/Main.hs
diff options
context:
space:
mode:
authorsimonmar <unknown>2003-07-28 14:32:43 +0000
committersimonmar <unknown>2003-07-28 14:32:43 +0000
commit6cfeee53431768f8d8326d6c645d6ccda198bde0 (patch)
tree7bcf9f5603882ccd49d967a9709a32cfd1e8ea21 /src/Main.hs
parentdbb776cd407bd7237fb81901d6bf405851b46754 (diff)
[haddock @ 2003-07-28 14:32:42 by simonmar]
Update to avoid using hslibs with GHC >= 5.04
Diffstat (limited to 'src/Main.hs')
-rw-r--r--src/Main.hs16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/Main.hs b/src/Main.hs
index d1bd8e51..092c4861 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -20,9 +20,7 @@ import Binary
import HsParser
import HsParseMonad
import HsSyn
-import GetOpt
import System
-import FiniteMap
--import Pretty
@@ -32,12 +30,20 @@ import Monad ( when )
import Char ( isSpace )
import IO
-#ifdef __GLASGOW_HASKELL__
+#if __GLASGOW_HASKELL__ < 503
+import MonadWriter
+import FiniteMap
+import GetOpt
import IOExts
+#else
+import Control.Monad.Writer
+import Data.FiniteMap
+import System.Console.GetOpt
+import Data.IORef
+import Debug.Trace
+import System.IO.Unsafe ( unsafePerformIO )
#endif
-import MonadWriter
-
#if __GLASGOW_HASKELL__ < 500
import Regex
import PackedString