Skip to content

Commit 1ef22da

Browse files
fix liquid build, replace (.||||.) with (.||.)
1 parent 8dee340 commit 1ef22da

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/DpsMergeSort4Par.hs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,10 @@ msortInplace src tmp =
5555
!(tmp1, tmp2) = splitMid tmpA
5656
!(tmp3, tmp4) = splitMid tmpB
5757
!(((src1', tmp1'), (src2', tmp2')), ((src3', tmp3'), (src4', tmp4')))
58-
= (.||||.) (msortInplace src1 tmp1) (msortInplace src2 tmp2)
59-
(msortInplace src3 tmp3) (msortInplace src4 tmp4)
60-
-- = (msortInplace src1 tmp1 .||. msortInplace src2 tmp2) .||.
61-
-- (msortInplace src3 tmp3 .||. msortInplace src4 tmp4)
62-
-- = tuple4 (msortInplace src1) tmp1 (msortInplace src2) tmp2
63-
-- (msortInplace src3) tmp3 (msortInplace src4) tmp4
58+
= (msortInplace src1 tmp1 .||. msortInplace src2 tmp2) .||.
59+
(msortInplace src3 tmp3 .||. msortInplace src4 tmp4)
60+
-- = (.||||.) (msortInplace src1 tmp1) (msortInplace src2 tmp2)
61+
-- (msortInplace src3 tmp3) (msortInplace src4 tmp4)
6462
tmpA' = A.append tmp1' tmp2'
6563
tmpB' = A.append tmp3' tmp4'
6664
!((srcA'', tmpA''), (srcB'', tmpB''))

src/Par.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,6 @@ a .||. b = (a,b)
123123
{-@ (.||||.) :: x:a -> y:a -> z:a -> w:a
124124
-> { tup:_ | x == fst (fst tup) && y == snd (fst tup) &&
125125
z == fst (snd tup) && w == snd (snd tup) } @-}
126-
(.||||.) :: (NFData a) => a -. a -. a -. a -. ((a,a),(a,a))
126+
(.||||.) :: a -. a -. a -. a -. ((a,a),(a,a))
127127
(.||||.) a b c d = ((a, b), (c, d))
128128
#endif

0 commit comments

Comments
 (0)