Skip to content

Commit

Permalink
cabal file tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellwrosen committed Oct 25, 2023
1 parent af903fe commit ae91cdc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions list-shuffle.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ synopsis: List shuffling and sampling
tested-with: GHC == 9.4.7, GHC == 9.6.3, GHC == 9.8.1
version: 1.0.0

extra-source-files:
extra-doc-files:
CHANGELOG.md
README.md

Expand Down Expand Up @@ -82,7 +82,7 @@ benchmark bench
list-shuffle,
random,
tasty-bench ^>= 0.3.5,
ghc-options: -O "-with-rtsopts=-A32m -T"
ghc-options: "-with-rtsopts=-A32m -T"
hs-source-dirs: bench
main-is: Main.hs
type: exitcode-stdio-1.0
4 changes: 2 additions & 2 deletions src/List/Shuffle.hs
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ shuffleIO list =

-- | \(\mathcal{O}(n)\). Sample elements of a list, without replacement.
--
-- @sample c xs@ is equivalent to taking @c@ elements from the result of @shuffle xs@, but with a constant factor that
-- is proportional to @c@, not the length of @xs@.
-- @sample_ c xs@ is equivalent to @take c . shuffle_ xs@, but with a constant factor that is proportional to @c@, not
-- the length of @xs@.
sample :: (RandomGen g) => Int -> [a] -> g -> ([a], g)
sample n list gen0 =
runST do
Expand Down

0 comments on commit ae91cdc

Please sign in to comment.