Hi,
building darcs on powerpc fails with
[ 3 of 233] Compiling Storage.Hashed.Utils ( hashed-storage/Storage/Hashed/Utils.hs, dist-ghc/build/Storage/Hashed/Utils.o )
hashed-storage/Storage/Hashed/Utils.hs:104:12:
Could not deduce (Num a) arising from the literal `255'
from the context (Bits a)
bound by the type signature for bytemask :: Bits a => a
at hashed-storage/Storage/Hashed/Utils.hs:103:13-25
Possible fix:
add (Num a) to the context of
the type signature for bytemask :: Bits a => a
In the expression: 255
In an equation for `bytemask': bytemask = 255
make: *** [build-ghc-stamp] Error 1
I believe this fixes it:
Index: darcs/hashed-storage/Storage/Hashed/Utils.hs
===================================================================
--- darcs.orig/hashed-storage/Storage/Hashed/Utils.hs 2015-07-09 18:48:56.000000000 +0200
+++ darcs/hashed-storage/Storage/Hashed/Utils.hs 2015-07-15 19:35:55.341427506 +0200
@@ -100,7 +100,7 @@
#endif
#ifdef BIGENDIAN
-bytemask :: (Bits a) => a
+bytemask :: (Num a, Bits a) => a
bytemask = 255
xlate32 a = ((a .&. (bytemask `shift` 0)) `shiftL` 24) .|.
Greetings,
Joachim
--
--
Joachim “nomeata” Breitner
mail@joachim-breitner.de • http://www.joachim-breitner.de/
Jabber: nomeata@joachim-breitner.de • GPG-Key: 0xF0FBF51F
Debian Developer: nomeata@debian.org
|