@@ -526,10 +526,10 @@ bitAnd
526526 -- ^ First input
527527 -> Array a
528528 -- ^ Second input
529- -> Array CBool
529+ -> Array a
530530 -- ^ Result of bitwise and
531531bitAnd x y =
532- x `op2bool ` y $ \ arr arr1 arr2 ->
532+ x `op2 ` y $ \ arr arr1 arr2 ->
533533 af_bitand arr arr1 arr2 1
534534
535535-- | Bitwise and the values in one 'Array' against another 'Array'
@@ -546,10 +546,10 @@ bitAndBatched
546546 -- ^ Second input
547547 -> Bool
548548 -- ^ Use batch
549- -> Array CBool
549+ -> Array a
550550 -- ^ Result of bitwise and
551551bitAndBatched x y (fromIntegral . fromEnum -> batch) = do
552- x `op2bool ` y $ \ arr arr1 arr2 ->
552+ x `op2 ` y $ \ arr arr1 arr2 ->
553553 af_bitand arr arr1 arr2 batch
554554
555555-- | Bitwise or the values in one 'Array' against another 'Array'
@@ -564,10 +564,10 @@ bitOr
564564 -- ^ First input
565565 -> Array a
566566 -- ^ Second input
567- -> Array CBool
568- -- ^ Result of bit or
567+ -> Array a
568+ -- ^ Result of bitwise or
569569bitOr x y = do
570- x `op2bool ` y $ \ arr arr1 arr2 ->
570+ x `op2 ` y $ \ arr arr1 arr2 ->
571571 af_bitor arr arr1 arr2 1
572572
573573-- | Bitwise or the values in one 'Array' against another 'Array'
@@ -584,10 +584,10 @@ bitOrBatched
584584 -- ^ Second input
585585 -> Bool
586586 -- ^ Use batch
587- -> Array CBool
588- -- ^ Result of bit or
587+ -> Array a
588+ -- ^ Result of bitwise or
589589bitOrBatched x y (fromIntegral . fromEnum -> batch) = do
590- x `op2bool ` y $ \ arr arr1 arr2 ->
590+ x `op2 ` y $ \ arr arr1 arr2 ->
591591 af_bitor arr arr1 arr2 batch
592592
593593-- | Bitwise xor the values in one 'Array' against another 'Array'
@@ -602,10 +602,10 @@ bitXor
602602 -- ^ First input
603603 -> Array a
604604 -- ^ Second input
605- -> Array CBool
606- -- ^ Result of bit xor
605+ -> Array a
606+ -- ^ Result of bitwise xor
607607bitXor x y = do
608- x `op2bool ` y $ \ arr arr1 arr2 ->
608+ x `op2 ` y $ \ arr arr1 arr2 ->
609609 af_bitxor arr arr1 arr2 1
610610
611611-- | Bitwise xor the values in one 'Array' against another 'Array'
@@ -622,10 +622,10 @@ bitXorBatched
622622 -- ^ Second input
623623 -> Bool
624624 -- ^ Use batch
625- -> Array CBool
626- -- ^ Result of bit xor
625+ -> Array a
626+ -- ^ Result of bitwise xor
627627bitXorBatched x y (fromIntegral . fromEnum -> batch) = do
628- x `op2bool ` y $ \ arr arr1 arr2 ->
628+ x `op2 ` y $ \ arr arr1 arr2 ->
629629 af_bitxor arr arr1 arr2 batch
630630
631631-- | Left bit shift the values in one 'Array' against another 'Array'
@@ -640,10 +640,10 @@ bitShiftL
640640 -- ^ First input
641641 -> Array a
642642 -- ^ Second input
643- -> Array CBool
643+ -> Array a
644644 -- ^ Result of bit shift left
645645bitShiftL x y =
646- x `op2bool ` y $ \ arr arr1 arr2 ->
646+ x `op2 ` y $ \ arr arr1 arr2 ->
647647 af_bitshiftl arr arr1 arr2 1
648648
649649-- | Left bit shift the values in one 'Array' against another 'Array'
@@ -660,10 +660,10 @@ bitShiftLBatched
660660 -- ^ Second input
661661 -> Bool
662662 -- ^ Use batch
663- -> Array CBool
663+ -> Array a
664664 -- ^ Result of bit shift left
665665bitShiftLBatched x y (fromIntegral . fromEnum -> batch) = do
666- x `op2bool ` y $ \ arr arr1 arr2 ->
666+ x `op2 ` y $ \ arr arr1 arr2 ->
667667 af_bitshiftl arr arr1 arr2 batch
668668
669669-- | Right bit shift the values in one 'Array' against another 'Array'
@@ -678,10 +678,10 @@ bitShiftR
678678 -- ^ First input
679679 -> Array a
680680 -- ^ Second input
681- -> Array CBool
681+ -> Array a
682682 -- ^ Result of bit shift right
683683bitShiftR x y =
684- x `op2bool ` y $ \ arr arr1 arr2 ->
684+ x `op2 ` y $ \ arr arr1 arr2 ->
685685 af_bitshiftr arr arr1 arr2 1
686686
687687-- | Right bit shift the values in one 'Array' against another 'Array'
@@ -698,10 +698,10 @@ bitShiftRBatched
698698 -- ^ Second input
699699 -> Bool
700700 -- ^ Use batch
701- -> Array CBool
702- -- ^ Result of bit shift left
701+ -> Array a
702+ -- ^ Result of bit shift right
703703bitShiftRBatched x y (fromIntegral . fromEnum -> batch) = do
704- x `op2bool ` y $ \ arr arr1 arr2 ->
704+ x `op2 ` y $ \ arr arr1 arr2 ->
705705 af_bitshiftr arr arr1 arr2 batch
706706
707707-- | Cast one 'Array' into another
0 commit comments