Move showOpt into DynFlags
authorIan Lynagh <igloo@earth.li>
Thu, 16 Jul 2009 00:53:14 +0000 (00:53 +0000)
committerIan Lynagh <igloo@earth.li>
Thu, 16 Jul 2009 00:53:14 +0000 (00:53 +0000)
compiler/main/DynFlags.hs
compiler/main/SysTools.lhs

index 1aaa728..fce8eac 100644 (file)
@@ -17,7 +17,7 @@ module DynFlags (
         GhcMode(..), isOneShot,
         GhcLink(..), isNoLink,
         PackageFlag(..),
-        Option(..),
+        Option(..), showOpt,
         DynLibLoader(..),
         fFlags, xFlags,
         dphPackage,
@@ -854,6 +854,10 @@ data Option
               String  -- the filepath/filename portion
  | Option     String
 
+showOpt :: Option -> String
+showOpt (FileOption pre f) = pre ++ f
+showOpt (Option s)  = s
+
 -----------------------------------------------------------------------------
 -- Setting the optimisation level
 
index bb706df..7a37b4c 100644 (file)
@@ -711,10 +711,6 @@ data BuildMessage
   | BuildError !SrcLoc !SDoc
   | EOF
 
-showOpt :: Option -> String
-showOpt (FileOption pre f) = pre ++ f
-showOpt (Option s)  = s
-
 traceCmd :: DynFlags -> String -> String -> IO () -> IO ()
 -- a) trace the command (at two levels of verbosity)
 -- b) don't do it at all if dry-run is set