Closed wincent closed 8 years ago
Due to extraction, we can wind up with an AST fragment that looks like this:
Project [ Project [ Unit [ DocBlock [] ] , DocBlock [] ] , CommandsAnnotation , CommandAnnotation "Ack" (Just "{pattern} {options}") , Paragraph [ Plaintext "Info." ] , CommandAnnotation "Qargs" Nothing ...
Would be nice to get rid of the empty DocBlocks, and in turn the empty Unit, and the empty Project, so the above would reduce to:
DocBlock
Unit
Project
Project , CommandsAnnotation , CommandAnnotation "Ack" (Just "{pattern} {options}") , Paragraph [ Plaintext "Info." ] , CommandAnnotation "Qargs" Nothing ...
Due to extraction, we can wind up with an AST fragment that looks like this:
Would be nice to get rid of the empty
DocBlock
s, and in turn the emptyUnit
, and the emptyProject
, so the above would reduce to: