Tweak some ifdeffery
authorIan Lynagh <igloo@earth.li>
Wed, 23 Mar 2011 02:42:56 +0000 (02:42 +0000)
committerIan Lynagh <igloo@earth.li>
Wed, 23 Mar 2011 02:42:56 +0000 (02:42 +0000)
Main.hs

diff --git a/Main.hs b/Main.hs
index d779458..03b13af 100644 (file)
--- a/Main.hs
+++ b/Main.hs
@@ -41,11 +41,14 @@ import System.Cmd               ( rawSystem )
 import System.Cmd               ( system )
 #endif
 
-#ifndef BUILD_NHC
-import Paths_hsc2hs as Main     ( getDataFileName, version )
-import Data.Version             ( showVersion )
-#else
+#ifdef BUILD_NHC
 import System.Directory         ( getCurrentDirectory )
+#else
+import Data.Version             ( showVersion )
+import Paths_hsc2hs as Main     ( getDataFileName, version )
+#endif
+
+#ifdef BUILD_NHC
 getDataFileName s = do here <- getCurrentDirectory
                        return (here++"/"++s)
 version = "0.67" -- TODO!!!