Move Int, Float and Double into ghc-prim:GHC.Types
authorIan Lynagh <igloo@earth.li>
Wed, 6 Aug 2008 19:16:02 +0000 (19:16 +0000)
committerIan Lynagh <igloo@earth.li>
Wed, 6 Aug 2008 19:16:02 +0000 (19:16 +0000)
GHC/Types.hs

index 5531a6d..a611b83 100644 (file)
@@ -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#
+