Fixed PArr.dropP
authorManuel M T Chakravarty <chak@cse.unsw.edu.au>
Thu, 22 Feb 2007 03:24:05 +0000 (03:24 +0000)
committerManuel M T Chakravarty <chak@cse.unsw.edu.au>
Thu, 22 Feb 2007 03:24:05 +0000 (03:24 +0000)
- Thanks to Audrey Tang for the bug report

GHC/PArr.hs

index bb031c0..90f903c 100644 (file)
@@ -245,7 +245,7 @@ takeP   :: Int -> [:a:] -> [:a:]
 takeP n  = sliceP 0 (n - 1)
 
 dropP     :: Int -> [:a:] -> [:a:]
-dropP n a  = sliceP (n - 1) (lengthP a - 1) a
+dropP n a  = sliceP n (lengthP a - 1) a
 
 splitAtP      :: Int -> [:a:] -> ([:a:],[:a:])
 splitAtP n xs  = (takeP n xs, dropP n xs)