diff --git a/aoc.cabal b/aoc.cabal index af0cfcf..8152520 100644 --- a/aoc.cabal +++ b/aoc.cabal @@ -232,3 +232,12 @@ executable 24 , split hs-source-dirs: app default-language: GHC2021 +executable 25 + import: warnings + main-is: 25.hs + -- other-modules: + -- other-extensions: + build-depends: base ^>=4.18.2.1 + , split + hs-source-dirs: app + default-language: GHC2021 diff --git a/app/10.hs b/app/10.hs index e69de29..6aac836 100644 --- a/app/10.hs +++ b/app/10.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE LambdaCase #-} +module Main where + +import Data.Functor + +parse = undefined + +solve1 = undefined + +solve2 = undefined + +main :: IO () +main = readFile "inputs/10" <&> parse >>= \i -> + print (solve1 i) >> + print (solve2 i) diff --git a/app/11.hs b/app/11.hs index e69de29..7d7b540 100644 --- a/app/11.hs +++ b/app/11.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE LambdaCase #-} +module Main where + +import Data.Functor + +parse = undefined + +solve1 = undefined + +solve2 = undefined + +main :: IO () +main = readFile "inputs/11" <&> parse >>= \i -> + print (solve1 i) >> + print (solve2 i) diff --git a/app/12.hs b/app/12.hs index e69de29..bf29854 100644 --- a/app/12.hs +++ b/app/12.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE LambdaCase #-} +module Main where + +import Data.Functor + +parse = undefined + +solve1 = undefined + +solve2 = undefined + +main :: IO () +main = readFile "inputs/12" <&> parse >>= \i -> + print (solve1 i) >> + print (solve2 i) diff --git a/app/13.hs b/app/13.hs index e69de29..4da2404 100644 --- a/app/13.hs +++ b/app/13.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE LambdaCase #-} +module Main where + +import Data.Functor + +parse = undefined + +solve1 = undefined + +solve2 = undefined + +main :: IO () +main = readFile "inputs/13" <&> parse >>= \i -> + print (solve1 i) >> + print (solve2 i) diff --git a/app/14.hs b/app/14.hs index e69de29..a179a4a 100644 --- a/app/14.hs +++ b/app/14.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE LambdaCase #-} +module Main where + +import Data.Functor + +parse = undefined + +solve1 = undefined + +solve2 = undefined + +main :: IO () +main = readFile "inputs/14" <&> parse >>= \i -> + print (solve1 i) >> + print (solve2 i) diff --git a/app/15.hs b/app/15.hs index e69de29..e8c7c49 100644 --- a/app/15.hs +++ b/app/15.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE LambdaCase #-} +module Main where + +import Data.Functor + +parse = undefined + +solve1 = undefined + +solve2 = undefined + +main :: IO () +main = readFile "inputs/15" <&> parse >>= \i -> + print (solve1 i) >> + print (solve2 i) diff --git a/app/16.hs b/app/16.hs index e69de29..6fbec3b 100644 --- a/app/16.hs +++ b/app/16.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE LambdaCase #-} +module Main where + +import Data.Functor + +parse = undefined + +solve1 = undefined + +solve2 = undefined + +main :: IO () +main = readFile "inputs/16" <&> parse >>= \i -> + print (solve1 i) >> + print (solve2 i) diff --git a/app/17.hs b/app/17.hs index e69de29..51a1399 100644 --- a/app/17.hs +++ b/app/17.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE LambdaCase #-} +module Main where + +import Data.Functor + +parse = undefined + +solve1 = undefined + +solve2 = undefined + +main :: IO () +main = readFile "inputs/17" <&> parse >>= \i -> + print (solve1 i) >> + print (solve2 i) diff --git a/app/18.hs b/app/18.hs index e69de29..3005320 100644 --- a/app/18.hs +++ b/app/18.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE LambdaCase #-} +module Main where + +import Data.Functor + +parse = undefined + +solve1 = undefined + +solve2 = undefined + +main :: IO () +main = readFile "inputs/18" <&> parse >>= \i -> + print (solve1 i) >> + print (solve2 i) diff --git a/app/19.hs b/app/19.hs index e69de29..f317637 100644 --- a/app/19.hs +++ b/app/19.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE LambdaCase #-} +module Main where + +import Data.Functor + +parse = undefined + +solve1 = undefined + +solve2 = undefined + +main :: IO () +main = readFile "inputs/19" <&> parse >>= \i -> + print (solve1 i) >> + print (solve2 i) diff --git a/app/20.hs b/app/20.hs index e69de29..8faa4ab 100644 --- a/app/20.hs +++ b/app/20.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE LambdaCase #-} +module Main where + +import Data.Functor + +parse = undefined + +solve1 = undefined + +solve2 = undefined + +main :: IO () +main = readFile "inputs/20" <&> parse >>= \i -> + print (solve1 i) >> + print (solve2 i) diff --git a/app/21.hs b/app/21.hs index e69de29..04b8e15 100644 --- a/app/21.hs +++ b/app/21.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE LambdaCase #-} +module Main where + +import Data.Functor + +parse = undefined + +solve1 = undefined + +solve2 = undefined + +main :: IO () +main = readFile "inputs/21" <&> parse >>= \i -> + print (solve1 i) >> + print (solve2 i) diff --git a/app/22.hs b/app/22.hs index e69de29..5e425e9 100644 --- a/app/22.hs +++ b/app/22.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE LambdaCase #-} +module Main where + +import Data.Functor + +parse = undefined + +solve1 = undefined + +solve2 = undefined + +main :: IO () +main = readFile "inputs/22" <&> parse >>= \i -> + print (solve1 i) >> + print (solve2 i) diff --git a/app/23.hs b/app/23.hs index e69de29..f29ff78 100644 --- a/app/23.hs +++ b/app/23.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE LambdaCase #-} +module Main where + +import Data.Functor + +parse = undefined + +solve1 = undefined + +solve2 = undefined + +main :: IO () +main = readFile "inputs/23" <&> parse >>= \i -> + print (solve1 i) >> + print (solve2 i) diff --git a/app/24.hs b/app/24.hs index e69de29..935370f 100644 --- a/app/24.hs +++ b/app/24.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE LambdaCase #-} +module Main where + +import Data.Functor + +parse = undefined + +solve1 = undefined + +solve2 = undefined + +main :: IO () +main = readFile "inputs/24" <&> parse >>= \i -> + print (solve1 i) >> + print (solve2 i) diff --git a/app/25.hs b/app/25.hs new file mode 100644 index 0000000..5bdfbe7 --- /dev/null +++ b/app/25.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE LambdaCase #-} +module Main where + +import Data.Functor + +parse = undefined + +solve1 = undefined + +solve2 = undefined + +main :: IO () +main = readFile "inputs/25" <&> parse >>= \i -> + print (solve1 i) >> + print (solve2 i) diff --git a/app/3.hs b/app/3.hs index e69de29..53e9db6 100644 --- a/app/3.hs +++ b/app/3.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE LambdaCase #-} +module Main where + +import Data.Functor + +parse = undefined + +solve1 = undefined + +solve2 = undefined + +main :: IO () +main = readFile "inputs/3" <&> parse >>= \i -> + print (solve1 i) >> + print (solve2 i) diff --git a/app/4.hs b/app/4.hs index e69de29..f62e689 100644 --- a/app/4.hs +++ b/app/4.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE LambdaCase #-} +module Main where + +import Data.Functor + +parse = undefined + +solve1 = undefined + +solve2 = undefined + +main :: IO () +main = readFile "inputs/4" <&> parse >>= \i -> + print (solve1 i) >> + print (solve2 i) diff --git a/app/5.hs b/app/5.hs index e69de29..0bb7336 100644 --- a/app/5.hs +++ b/app/5.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE LambdaCase #-} +module Main where + +import Data.Functor + +parse = undefined + +solve1 = undefined + +solve2 = undefined + +main :: IO () +main = readFile "inputs/5" <&> parse >>= \i -> + print (solve1 i) >> + print (solve2 i) diff --git a/app/6.hs b/app/6.hs index e69de29..c243796 100644 --- a/app/6.hs +++ b/app/6.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE LambdaCase #-} +module Main where + +import Data.Functor + +parse = undefined + +solve1 = undefined + +solve2 = undefined + +main :: IO () +main = readFile "inputs/6" <&> parse >>= \i -> + print (solve1 i) >> + print (solve2 i) diff --git a/app/7.hs b/app/7.hs index e69de29..acf1743 100644 --- a/app/7.hs +++ b/app/7.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE LambdaCase #-} +module Main where + +import Data.Functor + +parse = undefined + +solve1 = undefined + +solve2 = undefined + +main :: IO () +main = readFile "inputs/7" <&> parse >>= \i -> + print (solve1 i) >> + print (solve2 i) diff --git a/app/8.hs b/app/8.hs index e69de29..1476972 100644 --- a/app/8.hs +++ b/app/8.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE LambdaCase #-} +module Main where + +import Data.Functor + +parse = undefined + +solve1 = undefined + +solve2 = undefined + +main :: IO () +main = readFile "inputs/8" <&> parse >>= \i -> + print (solve1 i) >> + print (solve2 i) diff --git a/app/9.hs b/app/9.hs index e69de29..2c8f616 100644 --- a/app/9.hs +++ b/app/9.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE LambdaCase #-} +module Main where + +import Data.Functor + +parse = undefined + +solve1 = undefined + +solve2 = undefined + +main :: IO () +main = readFile "inputs/9" <&> parse >>= \i -> + print (solve1 i) >> + print (solve2 i)