Fix CodingStyle#Warnings URLs
[ghc-hetmet.git] / compiler / main / DriverMkDepend.hs
index 74ee4dc..de0ce53 100644 (file)
@@ -6,6 +6,13 @@
 --
 -----------------------------------------------------------------------------
 
+{-# OPTIONS -w #-}
+-- The above warning supression flag is a temporary kludge.
+-- While working on this module you are encouraged to remove it and fix
+-- any warnings in the module. See
+--     http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#Warnings
+-- for details
+
 module DriverMkDepend (
        doMkDependHS
   ) where
@@ -29,9 +36,6 @@ import SrcLoc
 import Data.List
 import CmdLineParser
 
-#if __GLASGOW_HASKELL__ <= 408
-import Panic           ( catchJust, ioErrors )
-#endif
 import ErrUtils         ( debugTraceMsg, putMsg )
 
 import Data.IORef      ( IORef, readIORef, writeIORef )
@@ -398,7 +402,11 @@ dep_opts =
    [ (  "s",                   SepArg (consIORef v_Dep_suffixes) )
    , (  "f",                   SepArg (writeIORef v_Dep_makefile) )
    , (  "w",                   NoArg (writeIORef v_Dep_warnings False) )
+
    , (  "-include-prelude",    NoArg (writeIORef v_Dep_include_pkg_deps True) )
+       -- -include-prelude is the old name for -include-pkg-deps, kept around
+       -- for backward compatibility, but undocumented
+
    , (  "-include-pkg-deps",   NoArg (writeIORef v_Dep_include_pkg_deps True) )
    , (  "-exclude-module=",     Prefix (consIORef v_Dep_exclude_mods . mkModuleName) )
    , (  "x",                    Prefix (consIORef v_Dep_exclude_mods . mkModuleName) )