ieee 0.6 → 0.6.1
raw patch · 3 files changed
+23/−6 lines, 3 files
Files
- Data/AEq.hs +14/−2
- NEWS +3/−0
- ieee.cabal +6/−4
Data/AEq.hs view
@@ -1,9 +1,10 @@+{-# LANGUAGE CPP #-} ----------------------------------------------------------------------------- -- | -- Module : Data.AEq--- Copyright : Copyright (c) 2008, Patrick Perry <patperry@stanford.edu>+-- Copyright : Copyright (c) 2010, Patrick Perry <patperry@gmail.com> -- License : BSD3--- Maintainer : Patrick Perry <patperry@stanford.edu>+-- Maintainer : Patrick Perry <patperry@gmail.com> -- Stability : experimental -- -- A type class for approximate and exact equalilty comparisons and instances @@ -222,9 +223,20 @@ (===) = identicalRealFloat (~==) = approxEqRealFloat +#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ <= 610++{-+ - CLDouble was removed[1] from GHC 6.12 but is due to return later[2].+ -+ - [1] http://hackage.haskell.org/trac/ghc/ticket/2793+ - [2] http://hackage.haskell.org/trac/ghc/ticket/3353+ -}+ instance AEq CLDouble where (===) = identicalRealFloat (~==) = approxEqRealFloat++#endif instance (AEq a, AEq b) => AEq (a,b) where (===) (a1,b1) (a2,b2) = ((===) a1 a2) && ((===) b1 b2)
+ NEWS view
@@ -0,0 +1,3 @@+Changes in 0.6.1:++ * Remove AEq instance for CLDouble (thanks to Bjorn Buckwalter)
ieee.cabal view
@@ -1,5 +1,5 @@ name: ieee-version: 0.6+version: 0.6.1 homepage: http://github.com/patperry/hs-ieee synopsis: Approximate comparisons for IEEE floating point numbers description:@@ -11,14 +11,14 @@ category: Math license: BSD3 license-file: LICENSE-copyright: (c) 2009. Patrick Perry <patperry@gmail.com>+copyright: (c) 2010. Patrick Perry <patperry@gmail.com> author: Patrick Perry maintainer: Patrick Perry <patperry@gmail.com> cabal-version: >= 1.2.0 build-type: Custom-tested-with: GHC ==6.10.1+tested-with: GHC ==6.12.2 -extra-source-files: tests/Properties.hs+extra-source-files: NEWS tests/Properties.hs library exposed-modules: Data.AEq@@ -27,3 +27,5 @@ build-depends: base >= 3 && < 5 ghc-options: -Wall++ extensions: CPP