Refactor to use field puns

This commit is contained in:
George Thomas 2025-12-02 11:20:48 +00:00
parent c25b6062c6
commit b19c02811e
2 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ executable aoc
BlockArguments
DuplicateRecordFields
MultiWayIf
NamedFieldPuns
NoFieldSelectors
OverloadedRecordDot
OverloadedStrings

View File

@ -29,7 +29,7 @@ main =
]
puzzleTest :: Puzzle a -> TestTree
puzzleTest Puzzle{..} =
puzzleTest Puzzle{number, parser, parts} =
testGroup pt $
["examples", "real"] <&> \t ->
withResource (parseFile $ "inputs/" <> t <> "/" <> pt) mempty \input ->