Synopsis

# Documentation

Replaces an old expression with a new expression

replaceAnnKey :: (Data old, Data new) => Located old -> Located new -> Anns -> Anns Source #

The annotations are keyed to the constructor, so if we replace a qualified with an unqualified RdrName or vice versa we have to rebuild the key for the appropriate annotation.

copyAnn :: (Data old, Data new) => Located old -> Located new -> Anns -> Anns Source #

setAnnKeywordDP :: Data a => Located a -> KeywordId -> DeltaPos -> Transform () Source #

Change the DeltaPos for a given KeywordId if it appears in the annotation for the given item.

clearPriorComments :: Data a => Located a -> Transform () Source #

Remove any preceding comments from the given item