/usr/share/doc/libghc-random-shuffle-doc/html/random-shuffle.txt is in libghc-random-shuffle-doc 0.0.4-8build5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | -- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Random shuffle implementation.
--
-- Random shuffle implementation, on immutable lists. Based on `perfect
-- shuffle' implementation by Oleg Kiselyov, available on
-- <a>http://okmij.org/ftp/Haskell/perfect-shuffle.txt</a>
@package random-shuffle
@version 0.0.4
-- | <a>http://okmij.org/ftp/Haskell/perfect-shuffle.txt</a>
module System.Random.Shuffle
-- | Given a sequence (e1,...en) to shuffle, and a sequence (r1,...r[n-1])
-- of numbers such that r[i] is an independent sample from a uniform
-- random distribution [0..n-i], compute the corresponding permutation of
-- the input sequence.
shuffle :: [a] -> [Int] -> [a]
-- | Given a sequence (e1,...en) to shuffle, its length, and a random
-- generator, compute the corresponding permutation of the input
-- sequence.
shuffle' :: RandomGen gen => [a] -> Int -> gen -> [a]
-- | shuffle' wrapped in a random monad
shuffleM :: (MonadRandom m) => [a] -> m [a]
instance GHC.Show.Show a => GHC.Show.Show (System.Random.Shuffle.Tree a)
|