Copyright | (c) Eric Mertens 2022 |
---|---|
License | ISC |
Maintainer | emertens@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
https://adventofcode.com/2022/day/13
>>>
:{
:main + "[1,1,3,1,1]\n\ \[1,1,5,1,1]\n\ \\n\ \[[1],[2,3,4]]\n\ \[[1],4]\n\ \\n\ \[9]\n\ \[[8,7,6]]\n\ \\n\ \[[4,4],4,4]\n\ \[[4,4],4,4,4]\n\ \\n\ \[7,7,7,7]\n\ \[7,7,7]\n\ \\n\ \[]\n\ \[3]\n\ \\n\ \[[[]]]\n\ \[[]]\n\ \\n\ \[1,[2,[3,[4,[5,6,7]]]],8,9]\n\ \[1,[2,[3,[4,[5,6,0]]]],8,9]\n" :} 13 140
Documentation
Parse a single nested lists of integer value. This parser uses a single letter name to make it accessible from the format quasiquoter.