Use named directory for Haskell source

Makes way for other languages.
This commit is contained in:
George Thomas 2025-12-02 14:59:15 +00:00
parent ef54d8ffa9
commit 3b093aac23
4 changed files with 4 additions and 4 deletions

View File

@ -1 +1 @@
packages: . packages: haskell

View File

@ -36,10 +36,10 @@ main =
. runParser (parser <* eof) fp . runParser (parser <* eof) fp
=<< T.readFile fp =<< T.readFile fp
in in
withResource (parseFile $ "inputs/" <> t <> "/" <> pt) mempty \input -> withResource (parseFile $ "../inputs/" <> t <> "/" <> pt) mempty \input ->
testGroup pt $ testGroup pt $
zip (map show [1 :: Int ..]) parts <&> \(n, pp) -> zip (map show [1 :: Int ..]) parts <&> \(n, pp) ->
goldenVsString n ("outputs/" <> t <> "/" <> pt <> "/" <> n) $ goldenVsString n ("../outputs/" <> t <> "/" <> pt <> "/" <> n) $
BL.fromStrict . encodeUtf8 . pp <$> input BL.fromStrict . encodeUtf8 . pp <$> input
data Puzzle = forall input. Puzzle data Puzzle = forall input. Puzzle

View File

@ -7,7 +7,7 @@ maintainer: georgefsthomas@gmail.com
executable aoc executable aoc
main-is: Main.hs main-is: Main.hs
hs-source-dirs: app hs-source-dirs: .
default-language: GHC2024 default-language: GHC2024
default-extensions: default-extensions:
BlockArguments BlockArguments