Refactor to use field puns
This commit is contained in:
parent
c25b6062c6
commit
b19c02811e
@ -13,6 +13,7 @@ executable aoc
|
|||||||
BlockArguments
|
BlockArguments
|
||||||
DuplicateRecordFields
|
DuplicateRecordFields
|
||||||
MultiWayIf
|
MultiWayIf
|
||||||
|
NamedFieldPuns
|
||||||
NoFieldSelectors
|
NoFieldSelectors
|
||||||
OverloadedRecordDot
|
OverloadedRecordDot
|
||||||
OverloadedStrings
|
OverloadedStrings
|
||||||
|
|||||||
@ -29,7 +29,7 @@ main =
|
|||||||
]
|
]
|
||||||
|
|
||||||
puzzleTest :: Puzzle a -> TestTree
|
puzzleTest :: Puzzle a -> TestTree
|
||||||
puzzleTest Puzzle{..} =
|
puzzleTest Puzzle{number, parser, parts} =
|
||||||
testGroup pt $
|
testGroup pt $
|
||||||
["examples", "real"] <&> \t ->
|
["examples", "real"] <&> \t ->
|
||||||
withResource (parseFile $ "inputs/" <> t <> "/" <> pt) mempty \input ->
|
withResource (parseFile $ "inputs/" <> t <> "/" <> pt) mempty \input ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user