repa 3.2.3.3 compilation failure with GHC 7.8

23 views
Skip to first unread message

Rob Stewart

unread,
Feb 8, 2014, 2:09:54 PM2/8/14
to haskel...@googlegroups.com
Using GHC 7.8 RC1. Two build-depends entries need to be relaxed, for base and template-haskell:

  Build-Depends: 
        base                 == 4.6.* || == 4.7.*,
        ghc-prim             == 0.3.*,
        vector               == 0.10.*,
        bytestring           == 0.10.*,
        template-haskell     == 2.8.* || == 2.9.*,
        QuickCheck           >= 2.3 && < 2.7

Here's the error:

[13 of 39] Compiling Data.Array.Repa.Eval.Reduction ( Data/Array/Repa/Eval/Reduction.hs, dist/build/Data/Array/Repa/Eval/Reduction.o )

Data/Array/Repa/Eval/Reduction.hs:29:8:
    Couldn't match expected type ‛Bool’ with actual type ‛Int#’
    In the expression: sh >=# end
    In a stmt of a pattern guard for
                   an equation for ‛iter’:
      sh >=# end
    In an equation for ‛iter’:
        iter !sh !sz
          | sh >=# end = return ()
          | otherwise
          = do { let !next = ...;
                 M.unsafeWrite vec (I# sh) (reduceAny get c r sz next);
                 iter (sh +# 1#) next }

Data/Array/Repa/Eval/Reduction.hs:59:15:
    Couldn't match expected type ‛Bool’ with actual type ‛Int#’
    In the expression: len <# ix'
    In the expression: if len <# ix' then len else ix'
    In the expression:
      let !ix' = ix *# step in if len <# ix' then len else ix'

Data/Array/Repa/Eval/Reduction.hs:69:12:
    Couldn't match expected type ‛Bool’ with actual type ‛Int#’
    In the expression: sh >=# end
    In a stmt of a pattern guard for
                   an equation for ‛iter’:
      sh >=# end
    In an equation for ‛iter’:
        iter !sh !sz
          | sh >=# end = return ()
          | otherwise
          = do { let !next = ...;
                 M.unsafeWrite vec (I# sh) (reduce f c r (I# sz) (I# next));
                 iter (sh +# 1#) next }

Data/Array/Repa/Eval/Reduction.hs:151:7:
    Couldn't match expected type ‛Bool’ with actual type ‛Int#’
    In the expression: i >=# end
    In a stmt of a pattern guard for
                   an equation for ‛iter’:
      i >=# end
    In an equation for ‛iter’:
        iter !i !z
          | i >=# end = z
          | otherwise = iter (i +# 1#) (f i `c` z)

Data/Array/Repa/Eval/Reduction.hs:168:7:
    Couldn't match expected type ‛Bool’ with actual type ‛Int#’
    In the expression: i >=# end
    In a stmt of a pattern guard for
                   an equation for ‛iter’:
      i >=# end
    In an equation for ‛iter’:
        iter !i !z
          | i >=# end = z
          | otherwise = iter (i +# 1#) (f i `c` z)

Data/Array/Repa/Eval/Reduction.hs:185:7:
    Couldn't match expected type ‛Bool’ with actual type ‛Int#’
    In the expression: i >=# end
    In a stmt of a pattern guard for
                   an equation for ‛iter’:
      i >=# end
    In an equation for ‛iter’:
        iter !i !z
          | i >=# end = z
          | otherwise = iter (i +# 1#) (f i `c` z)

Data/Array/Repa/Eval/Reduction.hs:202:7:
    Couldn't match expected type ‛Bool’ with actual type ‛Int#’
    In the expression: i >=# end
    In a stmt of a pattern guard for
                   an equation for ‛iter’:
      i >=# end
    In an equation for ‛iter’:
        iter !i !z
          | i >=# end = z
          | otherwise = iter (i +# 1#) (f i `c` z)
Failed to install repa-3.2.3.3
Reply all
Reply to author
Forward
0 new messages