X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=advent07%2FMain.hs;h=8f3a42445d74b6ffa4596856b47b815a645d7fb6;hb=a7b02636b8045a73a4dff090c1b932cfa1afd9bd;hp=8f4350d293e9fd37abba85ad702396b214a923dd;hpb=c4136e04dca618af23f2bbc30dc1045afb8a6bac;p=advent-of-code-23.git diff --git a/advent07/Main.hs b/advent07/Main.hs index 8f4350d..8f3a424 100644 --- a/advent07/Main.hs +++ b/advent07/Main.hs @@ -95,7 +95,7 @@ handP :: Parser Hand cardP :: Parser Card handsP = handP `sepBy` endOfLine -handP = Hand <$> ((many1 cardP) <* space) <*> decimal +handP = Hand <$> many1 cardP <* space <*> decimal cardP = (Two <$ "2") <|> (Three <$ "3") <|> (Four <$ "4") <|> (Five <$ "5") <|> (Six <$ "6") <|> (Seven <$ "7") <|>