[project @ 2002-11-11 11:04:10 by simonpj]
authorsimonpj <unknown>
Mon, 11 Nov 2002 11:04:10 +0000 (11:04 +0000)
committersimonpj <unknown>
Mon, 11 Nov 2002 11:04:10 +0000 (11:04 +0000)
-----------------
Template Haskell
-----------------

Template Haskell should now work in all modes!

Remove test for --make/--interactive mode.

ghc/compiler/typecheck/TcSplice.lhs

index 18f6996..31205e7 100644 (file)
@@ -232,13 +232,6 @@ runMeta expr
 
        print_unqual = unQualInScope rdr_env
     in
-    if (ghci_mode == OneShot) then
-       failWithTc (ptext SLIT("You must use --make or --interactive to run splice expressions"))
-       -- The reason for this is that the demand-linker doesn't have
-       -- enough information available to link all the things that
-       -- are needed when you try to run a splice
-    else
-
     ioToTcRn (HscMain.compileExpr hsc_env pcs this_mod 
                                  print_unqual expr) `thenM` \ hval ->