Parsing tweaks.
authorNeil Smith <neil.git@njae.me.uk>
Tue, 3 Dec 2019 22:13:01 +0000 (22:13 +0000)
committerNeil Smith <neil.git@njae.me.uk>
Tue, 3 Dec 2019 22:13:01 +0000 (22:13 +0000)
advent03/src/advent03.hs
advent03/src/advent03part1.hs

index a863ffef9ca2a09ac081a321c6bbc8f1f2c539a1..c022a1bb98c5dc6fae2ea663ff64c8f70f57a406 100644 (file)
@@ -101,7 +101,7 @@ integer = lexeme L.decimal
 symb = L.symbol sc
 comma = symb ","
 
-wiresP = some pathP
+wiresP = many pathP
 pathP = segmentP `sepBy1` comma
 
 segmentP = segmentify <$> directionP <*> integer
index e2beb38e974e5da7e3a7bcfdebc0bf397fb650e4..5647ce5326d4c492cfdb6db4acf7195a862307e1 100644 (file)
@@ -86,7 +86,7 @@ integer = lexeme L.decimal
 symb = L.symbol sc
 comma = symb ","
 
-wiresP = some pathP
+wiresP = many pathP
 pathP = segmentP `sepBy1` comma
 
 segmentP = segmentify <$> directionP <*> integer