summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0826d01)
Make it so that -fcompiling-prelude applies only
for Prelude modules (i.e. ones called Prelxxx).
I've done this with an {-# OPTIONS #-} line in each
such module (they all has -fno-implicit-prelude anyway)
but a less repetitive approach in the Makefile would
be welcome.
28 files changed:
#-----------------------------------------------------------------------------
# Setting the GHC compile options
#-----------------------------------------------------------------------------
# Setting the GHC compile options
-SRC_HC_OPTS += -recomp -cpp -fglasgow-exts -fvia-C -Rghc-timing $(GhcLibHcOpts) -fcompiling-prelude
+SRC_HC_OPTS += -recomp -cpp -fglasgow-exts -fvia-C -Rghc-timing $(GhcLibHcOpts)
ifneq "$(way)" "dll"
SRC_HC_OPTS += -static
endif
ifneq "$(way)" "dll"
SRC_HC_OPTS += -static
endif
\section[PrelAddr]{Module @PrelAddr@}
\begin{code}
\section[PrelAddr]{Module @PrelAddr@}
\begin{code}
-{-# OPTIONS -fno-implicit-prelude #-}
+{-# OPTIONS -fcompiling-prelude -fno-implicit-prelude #-}
module PrelAddr (
Addr(..)
module PrelAddr (
Addr(..)
For byte-arrays see @PrelByteArr@.
\begin{code}
For byte-arrays see @PrelByteArr@.
\begin{code}
-{-# OPTIONS -fno-implicit-prelude #-}
+{-# OPTIONS -fcompiling-prelude -fno-implicit-prelude #-}
-{-# OPTIONS -fno-implicit-prelude #-}
+{-# OPTIONS -fcompiling-prelude -fno-implicit-prelude #-}
module PrelArrExtra where
module PrelArrExtra where
-{-# OPTIONS -fno-implicit-prelude #-}
+{-# OPTIONS -fcompiling-prelude -fno-implicit-prelude #-}
Byte-arrays are flat arrays of non-pointers only.
\begin{code}
Byte-arrays are flat arrays of non-pointers only.
\begin{code}
-{-# OPTIONS -fno-implicit-prelude #-}
+{-# OPTIONS -fcompiling-prelude -fno-implicit-prelude #-}
Basic concurrency stuff
\begin{code}
Basic concurrency stuff
\begin{code}
-{-# OPTIONS -fno-implicit-prelude #-}
+{-# OPTIONS -fcompiling-prelude -fno-implicit-prelude #-}
module PrelConc
( ThreadId(..)
module PrelConc
( ThreadId(..)
available in exts/Dynamic.lhs.
\begin{code}
available in exts/Dynamic.lhs.
\begin{code}
-{-# OPTIONS -fno-implicit-prelude #-}
+{-# OPTIONS -fcompiling-prelude -fno-implicit-prelude #-}
#ifndef __HUGS__
module PrelDynamic where
#ifndef __HUGS__
module PrelDynamic where
Instances of Bounded for various datatypes.
\begin{code}
Instances of Bounded for various datatypes.
\begin{code}
-{-# OPTIONS -fno-implicit-prelude #-}
+{-# OPTIONS -fcompiling-prelude -fno-implicit-prelude #-}
module PrelEnum(
Bounded(..), Enum(..),
module PrelEnum(
Bounded(..), Enum(..),
with what the typechecker figures out.
\begin{code}
with what the typechecker figures out.
\begin{code}
-{-# OPTIONS -fno-implicit-prelude #-}
+{-# OPTIONS -fcompiling-prelude -fno-implicit-prelude #-}
module PrelErr
(
irrefutPatError
module PrelErr
(
irrefutPatError
% -----------------------------------------------------------------------------
% -----------------------------------------------------------------------------
-% $Id: PrelException.lhs,v 1.16 2000/04/10 13:35:45 simonmar Exp $
+% $Id: PrelException.lhs,v 1.17 2000/04/10 16:02:58 simonpj Exp $
%
% (c) The GRAP/AQUA Project, Glasgow University, 1998
%
%
% (c) The GRAP/AQUA Project, Glasgow University, 1998
%
Exceptions and exception-handling functions.
\begin{code}
Exceptions and exception-handling functions.
\begin{code}
-{-# OPTIONS -fno-implicit-prelude #-}
+{-# OPTIONS -fcompiling-prelude -fno-implicit-prelude #-}
#ifndef __HUGS__
module PrelException where
#ifndef __HUGS__
module PrelException where
-{-# OPTIONS -fno-implicit-prelude #-}
+{-# OPTIONS -fcompiling-prelude -fno-implicit-prelude #-}
#include "../includes/ieee-flpt.h"
#include "../includes/ieee-flpt.h"
\section[Foreign]{Module @Foreign@}
\begin{code}
\section[Foreign]{Module @Foreign@}
\begin{code}
-{-# OPTIONS -fno-implicit-prelude #-}
+{-# OPTIONS -fcompiling-prelude -fno-implicit-prelude #-}
module PrelForeign (
module PrelForeign,
module PrelForeign (
module PrelForeign,
which are supported for them.
\begin{code}
which are supported for them.
\begin{code}
-{-# OPTIONS -fno-implicit-prelude -#include "cbits/stgio.h" #-}
+{-# OPTIONS -fcompiling-prelude -fno-implicit-prelude -#include "cbits/stgio.h" #-}
#include "cbits/stgerror.h"
#ifndef __HUGS__ /* Hugs just includes this in PreludeBuiltin so no header needed */
#include "cbits/stgerror.h"
#ifndef __HUGS__ /* Hugs just includes this in PreludeBuiltin so no header needed */
-{-# OPTIONS -fno-implicit-prelude -#include "cbits/stgio.h" #-}
+{-# OPTIONS -fcompiling-prelude -fno-implicit-prelude -#include "cbits/stgio.h" #-}
% -----------------------------------------------------------------------------
% -----------------------------------------------------------------------------
-% $Id: PrelIOBase.lhs,v 1.20 2000/04/07 13:45:48 simonpj Exp $
+% $Id: PrelIOBase.lhs,v 1.21 2000/04/10 16:02:58 simonpj Exp $
%
% (c) The AQUA Project, Glasgow University, 1994-1998
%
%
% (c) The AQUA Project, Glasgow University, 1994-1998
%
concretely; the @IO@ module itself exports abstractly.
\begin{code}
concretely; the @IO@ module itself exports abstractly.
\begin{code}
-{-# OPTIONS -fno-implicit-prelude -#include "cbits/stgio.h" #-}
+{-# OPTIONS -fcompiling-prelude -fno-implicit-prelude -#include "cbits/stgio.h" #-}
#include "cbits/stgerror.h"
#include "config.h"
#include "cbits/stgerror.h"
#include "config.h"
The List data type and its operations
\begin{code}
The List data type and its operations
\begin{code}
-{-# OPTIONS -fno-implicit-prelude #-}
+{-# OPTIONS -fcompiling-prelude -fno-implicit-prelude #-}
module PrelList (
[] (..),
module PrelList (
[] (..),
The @Maybe@ type.
\begin{code}
The @Maybe@ type.
\begin{code}
-{-# OPTIONS -fno-implicit-prelude #-}
+{-# OPTIONS -fcompiling-prelude -fno-implicit-prelude #-}
-{-# OPTIONS -fno-implicit-prelude #-}
+{-# OPTIONS -fcompiling-prelude -fno-implicit-prelude #-}
system library PackedString.
\begin{code}
system library PackedString.
\begin{code}
-{-# OPTIONS -fno-implicit-prelude #-}
+{-# OPTIONS -fcompiling-prelude -fno-implicit-prelude #-}
Instances of the Read class.
\begin{code}
Instances of the Read class.
\begin{code}
-{-# OPTIONS -fno-implicit-prelude #-}
+{-# OPTIONS -fcompiling-prelude -fno-implicit-prelude #-}
-{-# OPTIONS -fno-implicit-prelude #-}
+{-# OPTIONS -fcompiling-prelude -fno-implicit-prelude #-}
\section[PrelST]{The @ST@ monad}
\begin{code}
\section[PrelST]{The @ST@ monad}
\begin{code}
-{-# OPTIONS -fno-implicit-prelude #-}
+{-# OPTIONS -fcompiling-prelude -fno-implicit-prelude #-}
-{-# OPTIONS -fno-implicit-prelude #-}
+{-# OPTIONS -fcompiling-prelude -fno-implicit-prelude #-}
% -----------------------------------------------------------------------------
% -----------------------------------------------------------------------------
-% $Id: PrelStable.lhs,v 1.3 1999/12/20 10:34:35 simonpj Exp $
+% $Id: PrelStable.lhs,v 1.4 2000/04/10 16:02:58 simonpj Exp $
%
% (c) The GHC Team, 1992-1999
%
\begin{code}
%
% (c) The GHC Team, 1992-1999
%
\begin{code}
-{-# OPTIONS -fno-implicit-prelude #-}
+{-# OPTIONS -fcompiling-prelude -fno-implicit-prelude #-}
module PrelStable
( StablePtr(..)
module PrelStable
( StablePtr(..)
This modules defines the typle data types.
\begin{code}
This modules defines the typle data types.
\begin{code}
-{-# OPTIONS -fno-implicit-prelude #-}
+{-# OPTIONS -fcompiling-prelude -fno-implicit-prelude #-}
\section[PrelWeak]{Module @PrelWeak@}
\begin{code}
\section[PrelWeak]{Module @PrelWeak@}
\begin{code}
-{-# OPTIONS -fno-implicit-prelude #-}
+{-# OPTIONS -fcompiling-prelude -fno-implicit-prelude #-}
and Prelude.-> (as they are normally). -- SDM 8/10/97
\begin{code}
and Prelude.-> (as they are normally). -- SDM 8/10/97
\begin{code}
-{-# OPTIONS -fno-implicit-prelude #-}
+{-# OPTIONS -fcompiling-prelude -fno-implicit-prelude #-}