[project @ 2003-08-22 08:58:30 by panne]
authorpanne <unknown>
Fri, 22 Aug 2003 08:58:31 +0000 (08:58 +0000)
committerpanne <unknown>
Fri, 22 Aug 2003 08:58:31 +0000 (08:58 +0000)
Added a workaround for the Haddock problems introduced by the circular
module dependencies regarding Unicode handling.

GHC/Read.lhs
Text/ParserCombinators/ReadP.hs
Text/Read/Lex.hs

index aba24ff..cc3c541 100644 (file)
@@ -65,7 +65,9 @@ import Data.Maybe
 import Data.Either
 
 import {-# SOURCE #-} GHC.Err          ( error )
+#ifndef __HADDOCK__
 import {-# SOURCE #-} GHC.Unicode      ( isDigit )
+#endif
 import GHC.Num
 import GHC.Real
 import GHC.Float
index ab84419..6b8475f 100644 (file)
@@ -51,7 +51,9 @@ module Text.ParserCombinators.ReadP
 
 import Control.Monad( MonadPlus(..) )
 #ifdef __GLASGOW_HASKELL__
+#ifndef __HADDOCK__
 import {-# SOURCE #-} GHC.Unicode ( isSpace  )
+#endif
 import GHC.Base
 #else
 import Data.Char( isSpace )
index ff63aa1..5273c4f 100644 (file)
@@ -35,7 +35,9 @@ import Text.ParserCombinators.ReadP
 import GHC.Base
 import GHC.Num( Num(..), Integer )
 import GHC.Show( Show(..) )
+#ifndef __HADDOCK__
 import {-# SOURCE #-} GHC.Unicode ( isSpace, isAlpha, isAlphaNum )
+#endif
 import GHC.Real( Ratio(..), Integral, Rational, (%), fromIntegral, 
                 toInteger, (^), (^^), infinity, notANumber )
 import GHC.List