7874bd60c38c8fb8e66d0f9817a84e604f90077e
[advent-of-code-23.git] / advent-of-code23.cabal
1 cabal-version: 3.6
2 name: advent-of-code23
3 version: 0.1.0.0
4
5 -- A short (one-line) description of the package.
6 synopsis: Solutions for the Advent of Code 2023
7
8 -- A longer description of the package.
9 -- description:
10
11 -- A URL where users can report bugs.
12 -- bug-reports:
13
14 -- The license under which the package is released.
15 -- license:
16 author: Neil Smith
17 maintainer: NeilNjae@users.noreply.github.com
18
19 -- A copyright notice.
20 -- copyright:
21 -- category:
22 extra-source-files:
23 CHANGELOG.md
24 README.md
25
26 common common-extensions
27 default-extensions: AllowAmbiguousTypes
28 , ApplicativeDo
29 , BangPatterns
30 , BlockArguments
31 , DataKinds
32 , DeriveFoldable
33 , DeriveFunctor
34 , DeriveGeneric
35 , DeriveTraversable
36 -- , DuplicateRecordFields
37 , EmptyCase
38 , FlexibleContexts
39 , FlexibleInstances
40 , FunctionalDependencies
41 , GADTs
42 , GeneralizedNewtypeDeriving
43 , ImplicitParams
44 , KindSignatures
45 , LambdaCase
46 , MonadComprehensions
47 , MonoLocalBinds
48 , MultiParamTypeClasses
49 , MultiWayIf
50 , NamedFieldPuns
51 , NegativeLiterals
52 , NumDecimals
53 -- , NoFieldSelectors
54 -- , OverloadedLists
55 -- , OverloadedRecordDot
56 , OverloadedStrings
57 , PartialTypeSignatures
58 , PatternGuards
59 , PatternSynonyms
60 , PolyKinds
61 , RankNTypes
62 , RecordWildCards
63 , ScopedTypeVariables
64 , TemplateHaskell
65 -- , TransformListComp
66 , TupleSections
67 , TypeApplications
68 , TypeFamilies
69 , TypeOperators
70 , ViewPatterns
71
72 common build-directives
73 build-depends: base >=4.18
74 default-language: Haskell2010
75 hs-source-dirs: ., app, src
76 other-modules: AoC
77 ghc-options: -O2
78 -Wall
79 -threaded
80 -rtsopts "-with-rtsopts=-N"
81
82 executable advent-of-code23
83 main-is: Main.hs
84
85 -- Modules included in this executable, other than Main.
86 -- other-modules:
87
88 -- LANGUAGE extensions used by modules in this package.
89 -- other-extensions:
90 build-depends: base ^>=4.18
91 hs-source-dirs: app, src
92 default-language: Haskell2010
93
94 library
95 import: common-extensions
96 build-depends: base >=4.18
97 hs-source-dirs: ., app, src
98 exposed-modules: AoC
99
100 executable advent01
101 import: common-extensions, build-directives
102 main-is: advent01/Main.hs
103
104 executable advent02
105 import: common-extensions, build-directives
106 main-is: advent02/Main.hs
107 build-depends: text, attoparsec
108
109 executable advent02a
110 import: common-extensions, build-directives
111 main-is: advent02/MainApplicative.hs
112 build-depends: text, attoparsec
113
114 executable advent03
115 import: common-extensions, build-directives
116 main-is: advent03/Main.hs
117 build-depends: linear, array
118
119 executable advent04
120 import: common-extensions, build-directives
121 main-is: advent04/Main.hs
122 build-depends: text, attoparsec
123
124 executable advent05
125 import: common-extensions, build-directives
126 main-is: advent05/Main.hs
127 build-depends: text, attoparsec, containers, split
128
129 executable advent05d
130 import: common-extensions, build-directives
131 main-is: advent05/MainDirect.hs
132 build-depends: text, attoparsec, containers, split