From: Ian Lynagh Date: Wed, 6 Aug 2008 19:16:02 +0000 (+0000) Subject: Move Int, Float and Double into ghc-prim:GHC.Types X-Git-Tag: 6_10_branch_has_been_forked~3 X-Git-Url: http://git.megacz.com/?p=ghc-prim.git;a=commitdiff_plain;h=c8ff966d1e0451d07ba12bfd1d7d0e43d032c694 Move Int, Float and Double into ghc-prim:GHC.Types --- 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# +