Jens Kadenbach 1年前
コミット
29afc2ff7b
4個のファイルの変更19行の追加14行の削除
  1. 3
    9
      aoc2022.cabal
  2. 0
    2
      package.yaml
  3. 0
    1
      src/Day1.hs
  4. 16
    2
      src/Lib.hs

+ 3
- 9
aoc2022.cabal ファイルの表示

@@ -50,8 +50,7 @@ library
50 50
       src
51 51
   ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints
52 52
   build-depends:
53
-      QuickCheck
54
-    , Ranged-sets
53
+      Ranged-sets
55 54
     , base >=4.7 && <5
56 55
     , containers
57 56
     , heredoc
@@ -59,7 +58,6 @@ library
59 58
     , lens
60 59
     , split
61 60
     , text
62
-    , these
63 61
   default-language: Haskell2010
64 62
 
65 63
 executable aoc2022-exe
@@ -70,8 +68,7 @@ executable aoc2022-exe
70 68
       app
71 69
   ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N
72 70
   build-depends:
73
-      QuickCheck
74
-    , Ranged-sets
71
+      Ranged-sets
75 72
     , aoc2022
76 73
     , base >=4.7 && <5
77 74
     , containers
@@ -80,7 +77,6 @@ executable aoc2022-exe
80 77
     , lens
81 78
     , split
82 79
     , text
83
-    , these
84 80
   default-language: Haskell2010
85 81
 
86 82
 test-suite aoc2022-test
@@ -97,8 +93,7 @@ test-suite aoc2022-test
97 93
       test
98 94
   ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N
99 95
   build-depends:
100
-      QuickCheck
101
-    , Ranged-sets
96
+      Ranged-sets
102 97
     , aoc2022
103 98
     , base >=4.7 && <5
104 99
     , containers
@@ -107,5 +102,4 @@ test-suite aoc2022-test
107 102
     , lens
108 103
     , split
109 104
     , text
110
-    , these
111 105
   default-language: Haskell2010

+ 0
- 2
package.yaml ファイルの表示

@@ -22,7 +22,6 @@ description:         Please see the README on GitHub at <https://github.com/auda
22 22
 dependencies:
23 23
 - base >= 4.7 && < 5
24 24
 - hspec
25
-- QuickCheck
26 25
 - text
27 26
 - split
28 27
 - heredoc
@@ -30,7 +29,6 @@ dependencies:
30 29
 - split
31 30
 - lens
32 31
 - Ranged-sets
33
-- these
34 32
 
35 33
 ghc-options:
36 34
 - -Wall

+ 0
- 1
src/Day1.hs ファイルの表示

@@ -14,7 +14,6 @@ day1 = do
14 14
   putStrLn ("Highest calorie count = " ++ calorieCount)
15 15
   caloriesOfTop3Elves <- day1_2
16 16
   putStrLn ("Calories of top 3 elves = " ++ caloriesOfTop3Elves)
17
-  putStrLn "-----------"
18 17
 
19 18
 
20 19
 day1_1 :: IO String

+ 16
- 2
src/Lib.hs ファイルの表示

@@ -2,8 +2,22 @@ module Lib
2 2
     ( someFunc
3 3
     ) where
4 4
       
5
-import Day5      
5
+import Day1
6
+import Day2
7
+import Day3
8
+import Day4
9
+import Day5
6 10
 
7 11
 someFunc :: IO ()
8
-someFunc = day5
12
+someFunc = do
13
+  day1
14
+  putStrLn "-----------"
15
+  day2
16
+  putStrLn "-----------"
17
+  day3
18
+  putStrLn "-----------"
19
+  day4
20
+  putStrLn "-----------"
21
+  day5
22
+  
9 23
 

読み込み中…
キャンセル
保存