scientific 0.1.0.1 → 0.2.0.0
raw patch · 2 files changed
+3/−2 lines, 2 files
Files
- scientific.cabal +1/−1
- src/Data/Scientific.hs +2/−1
scientific.cabal view
@@ -1,5 +1,5 @@ name: scientific-version: 0.1.0.1+version: 0.2.0.0 synopsis: Arbitrary-precision floating-point numbers represented using scientific notation description: A @Scientific@ number is an arbitrary-precision floating-point number represented using scientific notation.
src/Data/Scientific.hs view
@@ -38,6 +38,7 @@ import Control.Monad (mplus) import Control.DeepSeq (NFData) import Data.Char (intToDigit, ord)+import Data.Data (Data) import Data.Function (on) import Data.Functor ((<$>)) import Data.Hashable (Hashable(..))@@ -76,7 +77,7 @@ data Scientific = Scientific { coefficient :: !Integer -- ^ The coefficient of a scientific number. , base10Exponent :: {-# UNPACK #-} !Int -- ^ The base-10 exponent of a scientific number.- } deriving (Typeable)+ } deriving (Typeable, Data) -- | @scientific c e@ constructs a scientific number with -- 'coefficient' @c@ and 'base10Exponent' @e@.