Use named directory for Haskell source
Makes way for other languages.
This commit is contained in:
parent
ef54d8ffa9
commit
3b093aac23
@ -1 +1 @@
|
||||
packages: .
|
||||
packages: haskell
|
||||
|
||||
@ -36,10 +36,10 @@ main =
|
||||
. runParser (parser <* eof) fp
|
||||
=<< T.readFile fp
|
||||
in
|
||||
withResource (parseFile $ "inputs/" <> t <> "/" <> pt) mempty \input ->
|
||||
withResource (parseFile $ "../inputs/" <> t <> "/" <> pt) mempty \input ->
|
||||
testGroup pt $
|
||||
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
|
||||
|
||||
data Puzzle = forall input. Puzzle
|
||||
@ -7,7 +7,7 @@ maintainer: georgefsthomas@gmail.com
|
||||
|
||||
executable aoc
|
||||
main-is: Main.hs
|
||||
hs-source-dirs: app
|
||||
hs-source-dirs: .
|
||||
default-language: GHC2024
|
||||
default-extensions:
|
||||
BlockArguments
|
||||
Loading…
x
Reference in New Issue
Block a user