-
Notifications
You must be signed in to change notification settings - Fork 0
/
list-shuffle.cabal
90 lines (83 loc) · 2.25 KB
/
list-shuffle.cabal
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
cabal-version: 2.4
author: Mitchell Dalvi Rosen
bug-reports: https://github.com/awkward-squad/list-shuffle/issues
category: Data
copyright: Copyright (C) 2024 Mitchell Dalvi Rosen, Travis Staton
description: List shuffling and sampling with optimal asymptotic time and space complexity using the imperative Fisher–Yates algorithm.
homepage: https://github.com/awkward-squad/list-shuffle
license: BSD-3-Clause
license-file: LICENSE
maintainer: Mitchell Dalvi Rosen <[email protected]>, Travis Staton <[email protected]>
name: list-shuffle
stability: stable
synopsis: List shuffling and sampling
tested-with: GHC == 9.6.5, GHC == 9.8.2, GHC == 9.10.1
version: 1.0.0.1
x-revision: 1
extra-doc-files:
CHANGELOG.md
README.md
source-repository head
type: git
location: https://github.com/awkward-squad/list-shuffle.git
common component
default-extensions:
BangPatterns
BlockArguments
ImportQualifiedPost
LambdaCase
NumericUnderscores
OverloadedStrings
PatternSynonyms
RankNTypes
ScopedTypeVariables
default-language: Haskell2010
ghc-options:
-Weverything
-Wno-all-missed-specialisations
-Wno-implicit-prelude
-Wno-missed-specialisations
-Wno-missing-import-lists
-Wno-safe
-Wno-unsafe
if impl(ghc >= 8.10)
ghc-options:
-Wno-missing-safe-haskell-mode
-Wno-prepositive-qualified-module
if impl(ghc >= 9.2)
ghc-options:
-Wno-missing-kind-signatures
if impl(ghc >= 9.8)
ghc-options:
-Wno-missing-role-annotations
library
import: component
build-depends:
base ^>= 4.14 || ^>= 4.15 || ^>= 4.16 || ^>= 4.17 || ^>= 4.18 || ^>= 4.19 || ^>= 4.20,
primitive ^>= 0.8 || ^>= 0.9,
random ^>= 1.2.1,
hs-source-dirs: src
exposed-modules: List.Shuffle
test-suite test
import: component
build-depends:
base,
hedgehog ^>= 1.4,
list-shuffle,
random,
ghc-options: -rtsopts -threaded "-with-rtsopts=-N4"
hs-source-dirs: test
main-is: Main.hs
type: exitcode-stdio-1.0
benchmark bench
import: component
build-depends:
base,
deepseq ^>= 1.4.6 || ^>= 1.5.0,
list-shuffle,
random,
tasty-bench ^>= 0.3.5 || ^>= 0.4,
ghc-options: "-with-rtsopts=-A32m -T"
hs-source-dirs: bench
main-is: Main.hs
type: exitcode-stdio-1.0