Remove duplicates from export lists.
%
-% (c) The AQUA Project, Glasgow University, 1997
+% (c) The AQUA Project, Glasgow University, 1997-98
%
\section[Numeric]{Numeric interface}
\end{code}
%*********************************************************
-%* *
-\subsection{Signatures}
-%* *
+%* *
+\subsection[Numeric-signatures]{Signatures}
+%* *
%*********************************************************
Interface on offer:
showString "0x" $
showIntAtBase 16 (toChrHex) n r
where
- toChrHex d =
- if d < 10 then
- chr (ord_0 + fromIntegral d)
- else
- chr (ord 'a' + fromIntegral (d - 10))
+ toChrHex d
+ | d < 10 = chr (ord_0 + fromIntegral d)
+ | otherwise = chr (ord 'a' + fromIntegral (d - 10))
showOct :: Integral a => a -> ShowS
showOct n r =
\end{code}
+Controlling the format and precision of floats. The code that
+implements the formatting itself is in @PrelNum@ to avoid
+mutual module deps.
+
\begin{code}
showEFloat :: (RealFloat a) => Maybe Int -> a -> ShowS
showFFloat :: (RealFloat a) => Maybe Int -> a -> ShowS
showGFloat d x = showString (formatRealFloat FFGeneric d x)
\end{code}
-
-
-
Bounded(..),
Enum(..), succ, pred,
Show(..), ShowS, shows, show, showChar, showString, showParen,
- Num(..),
Eval(..), seq, strict,
Bool(..), (&&), (||), not, otherwise,
Char, String, Int, Integer, Float, Double, Void,
Ratio, Rational,
(%), numerator, denominator, approxRational,
- Num((+), (-), (*), negate, abs, signum, fromInteger),
+ Num((+), (-), (*), negate, abs, signum, fromInteger, fromInt{-glaExt-}),
Real(toRational),
Integral(quot, rem, div, mod, quotRem, divMod, toInteger, toInt{-partain-}),
Fractional((/), recip, fromRational),
module Time
(
- CalendarTime(..),
Month,
Day,
CalendarTime(CalendarTime),
TimeDiff(TimeDiff),
ClockTime(..), -- non-standard, lib. report gives this as abstract
- getClockTime, addToClockTime, diffClockTimes,
- toCalendarTime, toUTCTime, toClockTime,
- calendarTimeToString, formatCalendarTime
+
+ getClockTime,
+ addToClockTime,
+ diffClockTimes,
+
+ toCalendarTime,
+ toUTCTime,
+ toClockTime,
+ calendarTimeToString,
+ formatCalendarTime
) where
import PrelBase