From: ross Date: Mon, 9 Sep 2002 15:30:58 +0000 (+0000) Subject: [project @ 2002-09-09 15:30:58 by ross] X-Git-Tag: nhc98-1-18-release~865 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=81ef48b033c9d5bc6ee6e257ec51141e659b8532;p=ghc-base.git [project @ 2002-09-09 15:30:58 by ross] Hugs-only changes: explicit imports + use approxRational. --- diff --git a/Data/Ix.hs b/Data/Ix.hs index c9ebe92..b947466 100644 --- a/Data/Ix.hs +++ b/Data/Ix.hs @@ -78,3 +78,7 @@ import Prelude #ifdef __GLASGOW_HASKELL__ import GHC.Arr #endif + +#ifdef __HUGS__ +import Hugs.Prelude( Ix(..) ) +#endif diff --git a/Data/Ratio.hs b/Data/Ratio.hs index 37dd821..8a5b55f 100644 --- a/Data/Ratio.hs +++ b/Data/Ratio.hs @@ -39,7 +39,10 @@ import Prelude import GHC.Real -- The basic defns for Ratio #endif -#ifndef __HUGS__ +#ifdef __HUGS__ +import Hugs.Prelude(Ratio(..), (%), numerator, denominator) +#endif + -- ----------------------------------------------------------------------------- -- approxRational @@ -77,4 +80,3 @@ approxRational rat eps = simplest (rat-eps) (rat+eps) nd'' = simplest' d' r' d r n'' = numerator nd'' d'' = denominator nd'' -#endif /* __HUGS__ */