Cleanup
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
16
src/Lib.hs
16
src/Lib.hs
@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user