From c8ff966d1e0451d07ba12bfd1d7d0e43d032c694 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Wed, 6 Aug 2008 19:16:02 +0000 Subject: [PATCH] Move Int, Float and Double into ghc-prim:GHC.Types --- GHC/Types.hs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/GHC/Types.hs b/GHC/Types.hs index 5531a6d..a611b83 100644 --- a/GHC/Types.hs +++ b/GHC/Types.hs @@ -13,3 +13,18 @@ data [] a = [] | a : [a] data Char = C# Char# +data Int = I# Int# +-- ^A fixed-precision integer type with at least the range @[-2^29 .. 2^29-1]@. +-- The exact range for a given implementation can be determined by using +-- 'Prelude.minBound' and 'Prelude.maxBound' from the 'Prelude.Bounded' class. + +-- | Single-precision floating point numbers. +-- It is desirable that this type be at least equal in range and precision +-- to the IEEE single-precision type. +data Float = F# Float# + +-- | Double-precision floating point numbers. +-- It is desirable that this type be at least equal in range and precision +-- to the IEEE double-precision type. +data Double = D# Double# + -- 1.7.10.4