From: qrczak Date: Thu, 1 Mar 2001 19:10:16 +0000 (+0000) Subject: [project @ 2001-03-01 19:10:16 by qrczak] X-Git-Tag: Approximately_9120_patches~2489 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=0250da18e360124b889f13011f75f9a8b71c7072;p=ghc-hetmet.git [project @ 2001-03-01 19:10:16 by qrczak] Mark fromInt and toInt as deprecated. --- diff --git a/ghc/lib/std/PrelReal.lhs b/ghc/lib/std/PrelReal.lhs index 6748108..5452cc5 100644 --- a/ghc/lib/std/PrelReal.lhs +++ b/ghc/lib/std/PrelReal.lhs @@ -1,5 +1,5 @@ % ------------------------------------------------------------------------------ -% $Id: PrelReal.lhs,v 1.10 2001/02/28 00:01:03 qrczak Exp $ +% $Id: PrelReal.lhs,v 1.11 2001/03/01 19:10:16 qrczak Exp $ % % (c) The University of Glasgow, 1994-2000 % @@ -283,12 +283,12 @@ realToFrac = fromRational . toRational #-} -- For backward compatibility -{- DEPRECATED fromInt "use fromIntegral instead" -} +{-# DEPRECATED fromInt "use fromIntegral instead" #-} fromInt :: Num a => Int -> a fromInt = fromIntegral -- For backward compatibility -{- DEPRECATED toInt "use fromIntegral instead" -} +{-# DEPRECATED toInt "use fromIntegral instead" #-} toInt :: Integral a => a -> Int toInt = fromIntegral \end{code}