packages feed

half 0.1 → 0.1.1

raw patch · 3 files changed

+6/−2 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.1.1+-----+* Added a `CTYPE` to the Half declaration so that it can be used with `CApiFFI` as an unsigned short.+ 0.1 --- * Initial release
half.cabal view
@@ -1,6 +1,6 @@ name:          half category:      Numeric-version:       0.1+version:       0.1.1 license:       BSD3 cabal-version: >= 1.8 license-file:  LICENSE
src/Numeric/Half.hs view
@@ -48,7 +48,7 @@ foreign import ccall unsafe "hs_halfToFloat" toFloat :: Half -> Float {-# RULES "toFloat" realToFrac = toFloat #-} -newtype Half = Half { getHalf :: CUShort } deriving (Storable, Typeable)+newtype {-# CTYPE "unsigned short" #-} Half = Half { getHalf :: CUShort } deriving (Storable, Typeable)  instance Show Half where   showsPrec d h = showsPrec d (toFloat h)