2ee4d053227a97503384b4cf1b0a3a4bc19e0f1f
[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 , TypeInType
70 , TypeOperators
71 , ViewPatterns
72
73 common build-directives
74 build-depends: base >=4.18
75 default-language: Haskell2010
76 hs-source-dirs: ., app, src
77 other-modules: AoC
78 ghc-options: -O2
79 -Wall
80 -threaded
81 -rtsopts "-with-rtsopts=-N"
82
83 executable advent-of-code23
84 main-is: Main.hs
85
86 -- Modules included in this executable, other than Main.
87 -- other-modules:
88
89 -- LANGUAGE extensions used by modules in this package.
90 -- other-extensions:
91 build-depends: base ^>=4.18
92 hs-source-dirs: app, src
93 default-language: Haskell2010
94
95 library
96 import: common-extensions
97 build-depends: base >=4.18
98 hs-source-dirs: ., app, src
99 exposed-modules: AoC
100
101 executable advent01
102 import: common-extensions, build-directives
103 main-is: advent01/Main.hs
104 build-depends: split
105