This commit is contained in:
Jens Kadenbach
2022-12-05 16:15:49 +01:00
parent d62259bf75
commit 29afc2ff7b
4 changed files with 19 additions and 14 deletions

View File

@@ -50,8 +50,7 @@ library
src src
ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints
build-depends: build-depends:
QuickCheck Ranged-sets
, Ranged-sets
, base >=4.7 && <5 , base >=4.7 && <5
, containers , containers
, heredoc , heredoc
@@ -59,7 +58,6 @@ library
, lens , lens
, split , split
, text , text
, these
default-language: Haskell2010 default-language: Haskell2010
executable aoc2022-exe executable aoc2022-exe
@@ -70,8 +68,7 @@ executable aoc2022-exe
app app
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 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
build-depends: build-depends:
QuickCheck Ranged-sets
, Ranged-sets
, aoc2022 , aoc2022
, base >=4.7 && <5 , base >=4.7 && <5
, containers , containers
@@ -80,7 +77,6 @@ executable aoc2022-exe
, lens , lens
, split , split
, text , text
, these
default-language: Haskell2010 default-language: Haskell2010
test-suite aoc2022-test test-suite aoc2022-test
@@ -97,8 +93,7 @@ test-suite aoc2022-test
test test
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 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
build-depends: build-depends:
QuickCheck Ranged-sets
, Ranged-sets
, aoc2022 , aoc2022
, base >=4.7 && <5 , base >=4.7 && <5
, containers , containers
@@ -107,5 +102,4 @@ test-suite aoc2022-test
, lens , lens
, split , split
, text , text
, these
default-language: Haskell2010 default-language: Haskell2010

View File

@@ -22,7 +22,6 @@ description: Please see the README on GitHub at <https://github.com/auda
dependencies: dependencies:
- base >= 4.7 && < 5 - base >= 4.7 && < 5
- hspec - hspec
- QuickCheck
- text - text
- split - split
- heredoc - heredoc
@@ -30,7 +29,6 @@ dependencies:
- split - split
- lens - lens
- Ranged-sets - Ranged-sets
- these
ghc-options: ghc-options:
- -Wall - -Wall

View File

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

View File

@@ -2,8 +2,22 @@ module Lib
( someFunc ( someFunc
) where ) where
import Day1
import Day2
import Day3
import Day4
import Day5 import Day5
someFunc :: IO () someFunc :: IO ()
someFunc = day5 someFunc = do
day1
putStrLn "-----------"
day2
putStrLn "-----------"
day3
putStrLn "-----------"
day4
putStrLn "-----------"
day5