Move CLI parsing helpers to the library
Clarification and motivation
We have some generally useful things like addressOption
and maybeAddDefault
in Main
, they can't be reused in other packages and we tend to copy-paste.
Acceptance criteria
Pick all generally useful functions from morley
's Main.hs
and move them into Util.CLI
in the library.