summaryrefslogtreecommitdiff
path: root/libraries/base/Numeric.hs
diff options
context:
space:
mode:
authorsimonmar <unknown>2002-02-05 17:32:27 +0000
committersimonmar <unknown>2002-02-05 17:32:27 +0000
commitaadbf091aef6a6706ab68e34be053027e076e7a1 (patch)
tree618ce1a805afe3799755dc06c1bb0d90bbbc9951 /libraries/base/Numeric.hs
parentec3d22de8161fde3f3d27bef413ac3d01d109613 (diff)
downloadhaskell-aadbf091aef6a6706ab68e34be053027e076e7a1.tar.gz
[project @ 2002-02-05 17:32:24 by simonmar]
- Merging from ghc/lib/std - Add System.IO.Error - Now builds without --make, so we can do -split-objs
Diffstat (limited to 'libraries/base/Numeric.hs')
-rw-r--r--libraries/base/Numeric.hs20
1 files changed, 7 insertions, 13 deletions
diff --git a/libraries/base/Numeric.hs b/libraries/base/Numeric.hs
index cef75f45fc..9a2b6cca2f 100644
--- a/libraries/base/Numeric.hs
+++ b/libraries/base/Numeric.hs
@@ -1,14 +1,14 @@
-----------------------------------------------------------------------------
--
-- Module : Numeric
--- Copyright : (c) The University of Glasgow 2001
+-- Copyright : (c) The University of Glasgow 2002
-- License : BSD-style (see the file libraries/core/LICENSE)
--
-- Maintainer : libraries@haskell.org
--- Stability : experimental
+-- Stability : provisional
-- Portability : portable
--
--- $Id: Numeric.hs,v 1.3 2002/01/02 14:40:09 simonmar Exp $
+-- $Id: Numeric.hs,v 1.4 2002/02/05 17:32:24 simonmar Exp $
--
-- Odds and ends, mostly functions for reading and showing
-- RealFloat-like kind of values.
@@ -20,34 +20,28 @@ module Numeric (
fromRat, -- :: (RealFloat a) => Rational -> a
showSigned, -- :: (Real a) => (a -> ShowS) -> Int -> a -> ShowS
readSigned, -- :: (Real a) => ReadS a -> ReadS a
- showInt, -- :: Integral a => a -> ShowS
+
readInt, -- :: (Integral a) => a -> (Char -> Bool)
-- -> (Char -> Int) -> ReadS a
-
readDec, -- :: (Integral a) => ReadS a
readOct, -- :: (Integral a) => ReadS a
readHex, -- :: (Integral a) => ReadS a
+ showInt, -- :: Integral a => a -> ShowS
+ showIntAtBase, -- :: Integral a => a -> (a -> Char) -> a -> ShowS
showHex, -- :: Integral a => a -> ShowS
showOct, -- :: Integral a => a -> ShowS
showBin, -- :: Integral a => a -> ShowS
-
+
showEFloat, -- :: (RealFloat a) => Maybe Int -> a -> ShowS
showFFloat, -- :: (RealFloat a) => Maybe Int -> a -> ShowS
showGFloat, -- :: (RealFloat a) => Maybe Int -> a -> ShowS
showFloat, -- :: (RealFloat a) => a -> ShowS
readFloat, -- :: (RealFloat a) => ReadS a
-
floatToDigits, -- :: (RealFloat a) => Integer -> a -> ([Int], Int)
lexDigits, -- :: ReadS String
- -- general purpose number->string converter.
- showIntAtBase, -- :: Integral a
- -- => a -- base
- -- -> (a -> Char) -- digit to char
- -- -> a -- number to show.
- -- -> ShowS
) where
import Prelude -- For dependencies