-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadvent-of-code.cabal
More file actions
145 lines (123 loc) · 4.25 KB
/
Copy pathadvent-of-code.cabal
File metadata and controls
145 lines (123 loc) · 4.25 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
cabal-version: 2.4
name: advent-of-code
version: 0.1.0.0
-- A short (one-line) description of the package.
-- synopsis:
-- A longer description of the package.
-- description:
-- A URL where users can report bugs.
-- bug-reports:
-- The license under which the package is released.
-- license:
author: JMaximusIX
maintainer: jmaximusix@gmail.com
-- A copyright notice.
-- copyright:
-- category:
extra-source-files:
CHANGELOG.md
README.md
library Year2015
exposed-modules: Year2015
other-modules: Day01
hs-source-dirs: Year2015
default-language: Haskell2010
build-depends: base ^>=4.20.0.0,
MyLib,
template-haskell,
ghc-options: -Wall -Wextra -Wno-incomplete-patterns -Wno-incomplete-uni-patterns
library Year2022
exposed-modules: Year2022
other-modules: Day01, Day02, Day03, Day04, Day05, Day06, Day07, Day08, Day09, Day10, Day11, Day12, Day13, Day14, Day15, Day16, Day17, Day18, Day19, Day20, Day21
hs-source-dirs: Year2022
default-language: Haskell2010
build-depends: base ^>=4.20.0.0,
MyLib,
template-haskell,
extra,
containers,
combinatorial,
linear,
ilist,
search-algorithms,
split
ghc-options: -Wall -Wextra -Wno-incomplete-patterns -Wno-incomplete-uni-patterns
library Year2023
exposed-modules: Year2023
other-modules: Day01, Day02, Day03, Day04, Day05, Day06, Day07, Day08, Day09, Day10, Day11, Day12, Day13, Day14, Day15, Day16, Day17, Day18, Day19, Day20, Day21, Day22, Day23, Day24, Day25
hs-source-dirs: Year2023
default-language: Haskell2010
build-depends: base ^>=4.20.0.0,
MyLib,
search-algorithms,
template-haskell,
containers,
combinatorial,
extra,
ghc-options: -Wall -Wextra -Wno-incomplete-patterns -Wno-incomplete-uni-patterns
library Year2024
exposed-modules: Year2024
other-modules: Day01, Day02, Day03, Day04, Day05, Day06, Day07, Day08, Day09, Day10, Day11, Day12, Day13, Day14, Day15, Day16, Day17, Day18, Day19, Day20, Day21, Day22, Day23, Day24, Day25
hs-source-dirs: Year2024
default-language: Haskell2010
build-depends: base ^>=4.20.0.0,
MyLib,
search-algorithms,
template-haskell,
containers,
linear,
combinatorial,
extra,
lens,
sbv,
regex-tdfa,
ghc-options: -Wall -Wextra -Wno-incomplete-patterns -Wno-incomplete-uni-patterns
-- Note to future me on how to add a new year:
-- 1. Create a new directory for the year.
-- 2. Create a new library section for the year.
-- 3. Add the new library to the build-depends of the executable.
-- 4. Import the library in Main.hs
-- 5. Add the new year to the list of years in TemplateHS.hs:31
-- 6. Add traceShowId around (year) in Main.hs:97 (let solutions = ...)
-- For whatever reason this is necessary for the first execution otherwise TH won't register the new solutions.
library MyLib
exposed-modules: MyLib, TemplateHS, MyLib.Geometry, MyLib.Utils, MyLib.GridV
-- Modules included in this library but not exported.
other-modules: MyLib.ReExport
-- LANGUAGE extensions used by modules in this package.
-- other-extensions:
build-depends: base ^>=4.20.0.0,
advent-of-code-api,
template-haskell,
linear,
extra,
formatting,
containers,
ghc,
time
hs-source-dirs: src
default-language: Haskell2010
ghc-options: -Wall -Wextra -Wno-incomplete-patterns -Wno-incomplete-uni-patterns
executable advent-of-code
main-is: Main.hs
-- Modules included in this executable, other than Main.
other-modules: Clap
-- LANGUAGE extensions used by modules in this package.
-- other-extensions:
build-depends:
base ^>=4.20.0.0,
MyLib,
Year2015,
Year2022,
Year2023,
Year2024,
advent-of-code-api,
template-haskell,
optparse-applicative,
load-env,
timeit,
text,
containers
hs-source-dirs: app
default-language: Haskell2010
ghc-options: -Wall -Wextra -Wno-incomplete-patterns -Wno-incomplete-uni-patterns