Skip to content

Commit fc6f38a

Browse files
committed
Clean up build warnings
Issue 170, implement PR comments and clean up build warnings
1 parent 7eaf4e7 commit fc6f38a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

dataframe.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ library
103103
directory >= 1.3.0.0 && < 2,
104104
granite == 0.3.0.5,
105105
hashable >= 1.2 && < 2,
106+
mtl,
106107
process ^>= 1.6,
107108
snappy-hs ^>= 0.1,
108109
random >= 1.2 && < 1.3,
109-
random-shuffle >= 0.0.4 && < 1,
110110
regex-tdfa >= 1.3.0 && < 2,
111111
scientific >=0.3.1 && <0.4,
112112
template-haskell >= 2.0 && < 3,

src/DataFrame/Operations/Permutation.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ shuffledIndices pureGen k = shuffleVec pureGen (VU.fromList [0 .. (k - 1)])
8181
where
8282
shuffleVec :: (RandomGen g) => g -> VU.Vector Int -> VU.Vector Int
8383
shuffleVec g v = runST $ do
84-
vm <- VU.thaw v
84+
vm <- VUM.generate k id --VU.thaw v
8585
let (n, nGen) = randomR (0, (k - 1)) g
8686
go vm n nGen
8787
VU.unsafeFreeze vm

0 commit comments

Comments
 (0)