From fd46f0c5b04983bf60e9f1efc5c36853671d837f Mon Sep 17 00:00:00 2001
From: Thorkil Naur <naur@post11.tele.dk>
Date: Sun, 6 Nov 2011 17:57:49 +0100
Subject: [PATCH] Fix validate by moving OPTIONS -fno-warn-tabs Validate fixed
for Mac OS X 10.5 and Linux. For both:
compiler/nativeGen/PPC/Instr.hs
compiler/nativeGen/SPARC/Instr.hs failed to (stage1) build.
For Mac OS X, but mysteriously not for Linux:
compiler/basicTypes/Id.lhs compiler/basicTypes/Name.lhs
failed during haddock'ing.
---
compiler/basicTypes/Id.lhs | 14 +++++++-------
compiler/basicTypes/Name.lhs | 14 +++++++-------
compiler/nativeGen/PPC/Instr.hs | 6 +++---
compiler/nativeGen/SPARC/Instr.hs | 6 +++---
4 files changed, 20 insertions(+), 20 deletions(-)
diff --git a/compiler/basicTypes/Id.lhs b/compiler/basicTypes/Id.lhs
index 1a4f95c..d1df6cc 100644
|
a
|
b
|
|
| 5 | 5 | \section[Id]{@Ids@: Value and constructor identifiers} |
| 6 | 6 | |
| 7 | 7 | \begin{code} |
| | 8 | {-# OPTIONS -fno-warn-tabs #-} |
| | 9 | -- The above warning supression flag is a temporary kludge. |
| | 10 | -- While working on this module you are encouraged to remove it and |
| | 11 | -- detab the module (please do the detabbing in a separate patch). See |
| | 12 | -- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#TabsvsSpaces |
| | 13 | -- for details |
| | 14 | |
| 8 | 15 | -- | |
| 9 | 16 | -- #name_types# |
| 10 | 17 | -- GHC uses several kinds of name internally: |
| … |
… |
|
| 22 | 29 | -- |
| 23 | 30 | -- * 'Var.Var': see "Var#name_types" |
| 24 | 31 | |
| 25 | | {-# OPTIONS -fno-warn-tabs #-} |
| 26 | | -- The above warning supression flag is a temporary kludge. |
| 27 | | -- While working on this module you are encouraged to remove it and |
| 28 | | -- detab the module (please do the detabbing in a separate patch). See |
| 29 | | -- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#TabsvsSpaces |
| 30 | | -- for details |
| 31 | | |
| 32 | 32 | module Id ( |
| 33 | 33 | -- * The main types |
| 34 | 34 | Var, Id, isId, |
diff --git a/compiler/basicTypes/Name.lhs b/compiler/basicTypes/Name.lhs
index fde5890..64ca362 100644
|
a
|
b
|
|
| 5 | 5 | \section[Name]{@Name@: to transmit name info from renamer to typechecker} |
| 6 | 6 | |
| 7 | 7 | \begin{code} |
| | 8 | {-# OPTIONS -fno-warn-tabs #-} |
| | 9 | -- The above warning supression flag is a temporary kludge. |
| | 10 | -- While working on this module you are encouraged to remove it and |
| | 11 | -- detab the module (please do the detabbing in a separate patch). See |
| | 12 | -- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#TabsvsSpaces |
| | 13 | -- for details |
| | 14 | |
| 8 | 15 | -- | |
| 9 | 16 | -- #name_types# |
| 10 | 17 | -- GHC uses several kinds of name internally: |
| … |
… |
|
| 31 | 38 | -- * Internal, if they name things in the module being compiled. Some internal |
| 32 | 39 | -- Names are system names, if they are names manufactured by the compiler |
| 33 | 40 | |
| 34 | | {-# OPTIONS -fno-warn-tabs #-} |
| 35 | | -- The above warning supression flag is a temporary kludge. |
| 36 | | -- While working on this module you are encouraged to remove it and |
| 37 | | -- detab the module (please do the detabbing in a separate patch). See |
| 38 | | -- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#TabsvsSpaces |
| 39 | | -- for details |
| 40 | | |
| 41 | 41 | module Name ( |
| 42 | 42 | -- * The main types |
| 43 | 43 | Name, -- Abstract |
diff --git a/compiler/nativeGen/PPC/Instr.hs b/compiler/nativeGen/PPC/Instr.hs
index d6f4baf..63872e1 100644
|
a
|
b
|
|
| 6 | 6 | -- |
| 7 | 7 | ----------------------------------------------------------------------------- |
| 8 | 8 | |
| 9 | | #include "HsVersions.h" |
| 10 | | #include "nativeGen/NCG.h" |
| 11 | | |
| 12 | 9 | {-# OPTIONS -fno-warn-tabs #-} |
| 13 | 10 | -- The above warning supression flag is a temporary kludge. |
| 14 | 11 | -- While working on this module you are encouraged to remove it and |
| … |
… |
|
| 16 | 13 | -- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#TabsvsSpaces |
| 17 | 14 | -- for details |
| 18 | 15 | |
| | 16 | #include "HsVersions.h" |
| | 17 | #include "nativeGen/NCG.h" |
| | 18 | |
| 19 | 19 | module PPC.Instr ( |
| 20 | 20 | archWordSize, |
| 21 | 21 | RI(..), |
diff --git a/compiler/nativeGen/SPARC/Instr.hs b/compiler/nativeGen/SPARC/Instr.hs
index 742a4e7..82e16ee 100644
|
a
|
b
|
|
| 6 | 6 | -- |
| 7 | 7 | ----------------------------------------------------------------------------- |
| 8 | 8 | |
| 9 | | #include "HsVersions.h" |
| 10 | | #include "nativeGen/NCG.h" |
| 11 | | |
| 12 | 9 | {-# OPTIONS -fno-warn-tabs #-} |
| 13 | 10 | -- The above warning supression flag is a temporary kludge. |
| 14 | 11 | -- While working on this module you are encouraged to remove it and |
| … |
… |
|
| 16 | 13 | -- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#TabsvsSpaces |
| 17 | 14 | -- for details |
| 18 | 15 | |
| | 16 | #include "HsVersions.h" |
| | 17 | #include "nativeGen/NCG.h" |
| | 18 | |
| 19 | 19 | module SPARC.Instr ( |
| 20 | 20 | RI(..), |
| 21 | 21 | riZero, |