1
+ { system
2
+ , compiler
3
+ , flags
4
+ , pkgs
5
+ , hsPkgs
6
+ , pkgconfPkgs
7
+ , errorHandler
8
+ , config
9
+ , ... } :
10
+ {
11
+ flags = { } ;
12
+ package = {
13
+ specVersion = "3.4" ;
14
+ identifier = { name = "ac-library-hs" ; version = "1.1.1.0" ; } ;
15
+ license = "CC0-1.0" ;
16
+ copyright = "" ;
17
+ maintainer = "toyboot4e <[email protected] >" ;
18
+ author = "toyboot4e <[email protected] >" ;
19
+ homepage = "" ;
20
+ url = "" ;
21
+ synopsis = "Data structures and algorithms" ;
22
+ description = "Haskell port of [ac-library](https://github.com/atcoder/ac-library), a library for competitive\n programming on [AtCoder](https://atcoder.jp/).\n \n - Functions primarily use half-open interval \\ ([l, r)\\ ).\n - The extra module contains additional utilities beyond the original C++ library." ;
23
+ buildType = "Simple" ;
24
+ } ;
25
+ components = {
26
+ "library" = {
27
+ depends = [
28
+ ( hsPkgs . "base" or ( errorHandler . buildDepError "base" ) )
29
+ ( hsPkgs . "bitvec" or ( errorHandler . buildDepError "bitvec" ) )
30
+ ( hsPkgs . "bytestring" or ( errorHandler . buildDepError "bytestring" ) )
31
+ ( hsPkgs . "primitive" or ( errorHandler . buildDepError "primitive" ) )
32
+ ( hsPkgs . "vector" or ( errorHandler . buildDepError "vector" ) )
33
+ ( hsPkgs . "vector-algorithms" or ( errorHandler . buildDepError "vector-algorithms" ) )
34
+ ( hsPkgs . "wide-word" or ( errorHandler . buildDepError "wide-word" ) )
35
+ ] ;
36
+ buildable = true ;
37
+ } ;
38
+ exes = {
39
+ "example-lazy-segtree" = {
40
+ depends = [
41
+ ( hsPkgs . "base" or ( errorHandler . buildDepError "base" ) )
42
+ ( hsPkgs . "bitvec" or ( errorHandler . buildDepError "bitvec" ) )
43
+ ( hsPkgs . "bytestring" or ( errorHandler . buildDepError "bytestring" ) )
44
+ ( hsPkgs . "primitive" or ( errorHandler . buildDepError "primitive" ) )
45
+ ( hsPkgs . "vector" or ( errorHandler . buildDepError "vector" ) )
46
+ ( hsPkgs . "vector-algorithms" or ( errorHandler . buildDepError "vector-algorithms" ) )
47
+ ( hsPkgs . "wide-word" or ( errorHandler . buildDepError "wide-word" ) )
48
+ ( hsPkgs . "ac-library-hs" or ( errorHandler . buildDepError "ac-library-hs" ) )
49
+ ] ;
50
+ buildable = true ;
51
+ } ;
52
+ } ;
53
+ tests = {
54
+ "ac-library-hs-test" = {
55
+ depends = [
56
+ ( hsPkgs . "base" or ( errorHandler . buildDepError "base" ) )
57
+ ( hsPkgs . "bitvec" or ( errorHandler . buildDepError "bitvec" ) )
58
+ ( hsPkgs . "bytestring" or ( errorHandler . buildDepError "bytestring" ) )
59
+ ( hsPkgs . "primitive" or ( errorHandler . buildDepError "primitive" ) )
60
+ ( hsPkgs . "vector" or ( errorHandler . buildDepError "vector" ) )
61
+ ( hsPkgs . "vector-algorithms" or ( errorHandler . buildDepError "vector-algorithms" ) )
62
+ ( hsPkgs . "wide-word" or ( errorHandler . buildDepError "wide-word" ) )
63
+ ( hsPkgs . "ac-library-hs" or ( errorHandler . buildDepError "ac-library-hs" ) )
64
+ ( hsPkgs . "containers" or ( errorHandler . buildDepError "containers" ) )
65
+ ( hsPkgs . "hspec" or ( errorHandler . buildDepError "hspec" ) )
66
+ ( hsPkgs . "mtl" or ( errorHandler . buildDepError "mtl" ) )
67
+ ( hsPkgs . "QuickCheck" or ( errorHandler . buildDepError "QuickCheck" ) )
68
+ ( hsPkgs . "quickcheck-classes" or ( errorHandler . buildDepError "quickcheck-classes" ) )
69
+ ( hsPkgs . "random" or ( errorHandler . buildDepError "random" ) )
70
+ ( hsPkgs . "tasty" or ( errorHandler . buildDepError "tasty" ) )
71
+ ( hsPkgs . "tasty-hspec" or ( errorHandler . buildDepError "tasty-hspec" ) )
72
+ ( hsPkgs . "tasty-hunit" or ( errorHandler . buildDepError "tasty-hunit" ) )
73
+ ( hsPkgs . "tasty-quickcheck" or ( errorHandler . buildDepError "tasty-quickcheck" ) )
74
+ ( hsPkgs . "tasty-rerun" or ( errorHandler . buildDepError "tasty-rerun" ) )
75
+ ( hsPkgs . "transformers" or ( errorHandler . buildDepError "transformers" ) )
76
+ ( hsPkgs . "unordered-containers" or ( errorHandler . buildDepError "unordered-containers" ) )
77
+ ] ;
78
+ buildable = true ;
79
+ } ;
80
+ "benchlib-test" = {
81
+ depends = [
82
+ ( hsPkgs . "base" or ( errorHandler . buildDepError "base" ) )
83
+ ( hsPkgs . "bitvec" or ( errorHandler . buildDepError "bitvec" ) )
84
+ ( hsPkgs . "bytestring" or ( errorHandler . buildDepError "bytestring" ) )
85
+ ( hsPkgs . "primitive" or ( errorHandler . buildDepError "primitive" ) )
86
+ ( hsPkgs . "vector" or ( errorHandler . buildDepError "vector" ) )
87
+ ( hsPkgs . "vector-algorithms" or ( errorHandler . buildDepError "vector-algorithms" ) )
88
+ ( hsPkgs . "wide-word" or ( errorHandler . buildDepError "wide-word" ) )
89
+ ( hsPkgs . "ac-library-hs" or ( errorHandler . buildDepError "ac-library-hs" ) )
90
+ ( hsPkgs . "hspec" or ( errorHandler . buildDepError "hspec" ) )
91
+ ( hsPkgs . "mtl" or ( errorHandler . buildDepError "mtl" ) )
92
+ ( hsPkgs . "QuickCheck" or ( errorHandler . buildDepError "QuickCheck" ) )
93
+ ( hsPkgs . "random" or ( errorHandler . buildDepError "random" ) )
94
+ ( hsPkgs . "tagged" or ( errorHandler . buildDepError "tagged" ) )
95
+ ( hsPkgs . "tasty" or ( errorHandler . buildDepError "tasty" ) )
96
+ ( hsPkgs . "tasty-hunit" or ( errorHandler . buildDepError "tasty-hunit" ) )
97
+ ( hsPkgs . "tasty-quickcheck" or ( errorHandler . buildDepError "tasty-quickcheck" ) )
98
+ ( hsPkgs . "tasty-rerun" or ( errorHandler . buildDepError "tasty-rerun" ) )
99
+ ] ;
100
+ buildable = true ;
101
+ } ;
102
+ } ;
103
+ benchmarks = {
104
+ "ac-library-hs-benchmark" = {
105
+ depends = [
106
+ ( hsPkgs . "base" or ( errorHandler . buildDepError "base" ) )
107
+ ( hsPkgs . "bitvec" or ( errorHandler . buildDepError "bitvec" ) )
108
+ ( hsPkgs . "bytestring" or ( errorHandler . buildDepError "bytestring" ) )
109
+ ( hsPkgs . "primitive" or ( errorHandler . buildDepError "primitive" ) )
110
+ ( hsPkgs . "vector" or ( errorHandler . buildDepError "vector" ) )
111
+ ( hsPkgs . "vector-algorithms" or ( errorHandler . buildDepError "vector-algorithms" ) )
112
+ ( hsPkgs . "wide-word" or ( errorHandler . buildDepError "wide-word" ) )
113
+ ( hsPkgs . "ac-library-hs" or ( errorHandler . buildDepError "ac-library-hs" ) )
114
+ ( hsPkgs . "base" or ( errorHandler . buildDepError "base" ) )
115
+ ( hsPkgs . "criterion" or ( errorHandler . buildDepError "criterion" ) )
116
+ ( hsPkgs . "mtl" or ( errorHandler . buildDepError "mtl" ) )
117
+ ( hsPkgs . "random" or ( errorHandler . buildDepError "random" ) )
118
+ ( hsPkgs . "tagged" or ( errorHandler . buildDepError "tagged" ) )
119
+ ( hsPkgs . "transformers" or ( errorHandler . buildDepError "transformers" ) )
120
+ ] ;
121
+ buildable = true ;
122
+ } ;
123
+ } ;
124
+ } ;
125
+ }
0 commit comments