[Pkg-haskell-commits] darcs: haskell-cpu: releasing version 0.1.1-1
Joachim Breitner
mail at joachim-breitner.de
Fri Jun 15 07:31:12 UTC 2012
Fri Jun 15 07:31:04 UTC 2012 Joachim Breitner <mail at joachim-breitner.de>
* releasing version 0.1.1-1
Ignore-this: 89aa7050467a02e52c0ad14a8398b094
M ./changelog -3 +3
R ./patches/
R ./patches/make-getSystemEndianness-inlineable
R ./patches/series
Fri Jun 15 07:31:04 UTC 2012 Joachim Breitner <mail at joachim-breitner.de>
* releasing version 0.1.1-1
Ignore-this: 89aa7050467a02e52c0ad14a8398b094
diff -rN -u old-haskell-cpu//changelog new-haskell-cpu//changelog
--- old-haskell-cpu//changelog 2012-06-15 07:31:12.310323822 +0000
+++ new-haskell-cpu//changelog 2012-06-15 07:31:12.322325976 +0000
@@ -1,8 +1,8 @@
-haskell-cpu (0.1.1-1) UNRELEASED; urgency=low
+haskell-cpu (0.1.1-1) unstable; urgency=low
- * New upstream release
+ * Upstream just made a new release with the patch, using that one.
- -- Joachim Breitner <nomeata at debian.org> Fri, 15 Jun 2012 09:29:24 +0200
+ -- Joachim Breitner <nomeata at debian.org> Fri, 15 Jun 2012 09:30:23 +0200
haskell-cpu (0.1.0-3) unstable; urgency=low
diff -rN -u old-haskell-cpu//patches/make-getSystemEndianness-inlineable new-haskell-cpu//patches/make-getSystemEndianness-inlineable
--- old-haskell-cpu//patches/make-getSystemEndianness-inlineable 2012-06-15 07:31:12.318325704 +0000
+++ new-haskell-cpu//patches/make-getSystemEndianness-inlineable 1970-01-01 00:00:00.000000000 +0000
@@ -1,42 +0,0 @@
-Description: Make getSystemEndianness zero cost
-Author: Joachim Breitner <nomeata at debian.org>
-Bug: https://github.com/vincenthz/hs-cpu/issues/1
-Forwarded: https://github.com/vincenthz/hs-cpu/pull/2
-
---- haskell-cpu-0.1.0.orig/System/Endian.hs
-+++ haskell-cpu-0.1.0/System/Endian.hs
-@@ -21,11 +21,10 @@ module System.Endian
- , toBE64
- ) where
-
--import Foreign.Marshal.Alloc
--import Foreign.Storable
--import Foreign.Ptr
-+#include "MachDeps.h"
-+
-+import Unsafe.Coerce (unsafeCoerce)
- import Foreign.C.Types
--import System.IO.Unsafe (unsafePerformIO)
- import Data.Word
-
- -- | represent the CPU endianness
-@@ -40,14 +39,11 @@ data Endianness = LittleEndian
-
- -- | return the system endianness
- getSystemEndianness :: Endianness
--getSystemEndianness = unsafePerformIO $ alloca $ \p ->
-- poke p cst >> peek (castPtr p) >>= return . check
-- where cst :: Word32
-- cst = 0x01000000
-- check :: Word8 -> Endianness
-- check x
-- | x == 0x01 = BigEndian
-- | otherwise = LittleEndian
-+#ifdef WORDS_BIGENDIAN
-+getSystemEndianness = BigEndian
-+#else
-+getSystemEndianness = LittleEndian
-+#endif
-
- -- | Convert from a big endian 64 bit value to the cpu endianness
- fromBE64 :: Word64 -> Word64
diff -rN -u old-haskell-cpu//patches/series new-haskell-cpu//patches/series
--- old-haskell-cpu//patches/series 2012-06-15 07:31:12.318325704 +0000
+++ new-haskell-cpu//patches/series 1970-01-01 00:00:00.000000000 +0000
@@ -1 +0,0 @@
-make-getSystemEndianness-inlineable
More information about the Pkg-haskell-commits
mailing list