packages feed

half 0.2 → 0.2.0.1

raw patch · 3 files changed

+8/−4 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.markdown view
@@ -1,3 +1,7 @@+0.2.0.1+-------+* Fixed source repository location+ 0.2 --- * Renamed `toFloat` to `fromHalf` for easier unqualified use.
half.cabal view
@@ -1,6 +1,6 @@ name:          half category:      Numeric-version:       0.2+version:       0.2.0.1 license:       BSD3 cabal-version: >= 1.8 license-file:  LICENSE@@ -23,7 +23,7 @@  source-repository head   type: git-  location: git://github.com/analytics/half.git+  location: git://github.com/ekmett/half.git  library   hs-source-dirs: src
src/Numeric/Half.hs view
@@ -43,11 +43,11 @@  -- | Convert a 'Float' to a 'Half' with proper rounding, while preserving NaN and dealing appropriately with infinity foreign import ccall unsafe "hs_floatToHalf" toHalf :: Float -> Half-{-# RULES "toHalf"  realToFrac = toHalf #-}+-- {-# RULES "toHalf"  realToFrac = toHalf #-}  -- | Convert a 'Half' to a 'Float' while preserving NaN foreign import ccall unsafe "hs_halfToFloat" fromHalf :: Half -> Float-{-# RULES "fromHalf" realToFrac = fromHalf #-}+-- {-# RULES "fromHalf" realToFrac = fromHalf #-}  newtype {-# CTYPE "unsigned short" #-} Half = Half { getHalf :: CUShort } deriving (Storable, Typeable)