Skip to content

Commit 8c01e8b

Browse files
committed
stop using internal libs (stack poorly supports them)
This worked fine when working on the executables, but not on the lib itself (which was not listed in `stack ide targets` or the target supported in `stack build advent-of-code-y2021:lib:advent-of-code-inputs`). An issue is still open at the moment: commercialhaskell/stack#4564
1 parent cfa4538 commit 8c01e8b

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

advent-of-code-y2021.cabal

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cabal-version: 2.0
1+
cabal-version: 1.12
22

33
-- This file has been generated from package.yaml by hpack version 0.34.4.
44
--
@@ -8,13 +8,13 @@ name: advent-of-code-y2021
88
version: 0.1.0.0
99
build-type: Simple
1010

11-
library advent-of-code-inputs
11+
library
1212
exposed-modules:
1313
Input.D01
1414
other-modules:
1515
Paths_advent_of_code_y2021
1616
hs-source-dirs:
17-
data/
17+
src
1818
build-depends:
1919
base >=4.7 && <5
2020
default-language: Haskell2010
@@ -26,6 +26,6 @@ executable d01
2626
hs-source-dirs:
2727
exe
2828
build-depends:
29-
advent-of-code-inputs
29+
advent-of-code-y2021
3030
, base >=4.7 && <5
3131
default-language: Haskell2010

package.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,11 @@ version: 0.1.0.0
44
dependencies:
55
- base >= 4.7 && < 5
66

7-
## commented out until i have shared tools
8-
#library:
9-
# source-dirs: src
10-
11-
internal-libraries:
12-
advent-of-code-inputs:
13-
source-dirs: data/
7+
library:
8+
source-dirs: src
149

1510
executables:
1611
d01:
1712
source-dirs: exe
1813
main: d01.hs
19-
dependencies: advent-of-code-inputs
14+
dependencies: advent-of-code-y2021
File renamed without changes.

0 commit comments

Comments
 (0)