using fully qualified module names in Haskell source, which seems to be required by GHC 7.0.4
authorbulwahn
Thu, 26 Jan 2012 10:59:47 +0100
changeset 46335 0fd9ab902b5a
parent 46334 3858dc8eabd8
child 46336 39fe503602fb
using fully qualified module names in Haskell source, which seems to be required by GHC 7.0.4
src/HOL/Tools/Quickcheck/Narrowing_Engine.hs
src/HOL/Tools/Quickcheck/narrowing_generators.ML
--- a/src/HOL/Tools/Quickcheck/Narrowing_Engine.hs	Thu Jan 26 09:52:47 2012 +0100
+++ b/src/HOL/Tools/Quickcheck/Narrowing_Engine.hs	Thu Jan 26 10:59:47 2012 +0100
@@ -1,6 +1,6 @@
 module Narrowing_Engine where {
 
-import Monad;
+import Control.Monad;
 import Control.Exception;
 import System.IO;
 import System.Exit;
--- a/src/HOL/Tools/Quickcheck/narrowing_generators.ML	Thu Jan 26 09:52:47 2012 +0100
+++ b/src/HOL/Tools/Quickcheck/narrowing_generators.ML	Thu Jan 26 10:59:47 2012 +0100
@@ -239,7 +239,8 @@
         val narrowing_engine_file = Path.append in_path (Path.basic "Narrowing_Engine.hs")
         val main_file = Path.append in_path (Path.basic "Main.hs")
         val main = "module Main where {\n\n" ^
-          "import System;\n" ^
+          "import System.IO;\n" ^
+          "import System.Environment;\n" ^
           "import Narrowing_Engine;\n" ^
           "import Generated_Code;\n\n" ^
           "main = getArgs >>= \\[potential, size] -> " ^