From: simonmar Date: Wed, 13 Feb 2002 12:17:48 +0000 (+0000) Subject: [project @ 2002-02-13 12:17:48 by simonmar] X-Git-Tag: Approximately_9120_patches~79 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=ab96f60df7f176114efe91228eed1fb39589292f;p=ghc-hetmet.git [project @ 2002-02-13 12:17:48 by simonmar] Add {-# OPTIONS -fno-implicit-prelude #-} to the top of GHC/PrimopWrappers.hs --- diff --git a/ghc/utils/genprimopcode/Main.hs b/ghc/utils/genprimopcode/Main.hs index 5be75a6..eedcb72 100644 --- a/ghc/utils/genprimopcode/Main.hs +++ b/ghc/utils/genprimopcode/Main.hs @@ -249,7 +249,10 @@ gen_latex_doc (Info defaults entries) latex_encode (c:cs) = c:(latex_encode cs) gen_wrappers (Info defaults entries) - = "module GHC.PrimopWrappers where\n" + = "{-# OPTIONS -fno-implicit-prelude #-}\n" + -- Dependencies on Prelude must be explicit in libraries/base, but we + -- don't need the Prelude here so we add -fno-implicit-prelude. + ++ "module GHC.PrimopWrappers where\n" ++ "import qualified GHC.Prim\n" ++ unlines (map f (filter (not.dodgy) (filter is_primop entries))) where