Age | Commit message (Collapse) | Author |
|
Better to focus on printing and parsing here, at least for now;
besides, pipes are nice, but some may prefer other methods.
The code is moved into an example instead.
|
|
DSV functions operate on individual lines now, unit type gets
printed/parsed as nothing (handier for argument parsing to set '()'
when there's none, and that's what it should be anyway).
|
|
|
|
|
|
It is nice to omit them, but may lead to ambiguity -- so better to
provide a safer option.
|
|
Ambiguity is possible if the parser accepts those optionally, so it
should accept them depending on the provided options.
|
|
|
|
|
|
|
|
|
|
It's considerably cleaner and simpler with GHC.Generics.
Megaparsec is also used now.
|
|
|