EPA: Use full range for Anchor
This change requires a series of related changes, which must all land at the same time, otherwise all the EPA tests break.
-
Use the current
Anchor
end as prior endUse the original anchor location end as the source of truth for calculating print deltas.
This allows original spacing to apply in most cases, only changed AST items need initial delta positions.
-
Add
DArrow
toTrailingAnn
, unicode and plain variants -
EPA Introduce
HasTrailing
inExactPrint
Use
[TrailingAnn]
inExactPrint.enterAnn
and remove it from theExactPrint
instance for(LocatedN RdrName)
-
In
HsDo
, putTrailingAnns
at the top of theLastStmt
, so they are dealt with last -
EPA: do not convert comments to deltas when balancing.
-
EPA: deal with fallout from
getMonoBind
-
EPA fix
captureLineSpacing
-
EPA print any comments in the span before exiting it
-
EPA: Add comments to
AnchorOperation
-
EPA: remove
AnnEofComment
, it is no longer used
Updates Haddock submodule