Safe Haskell | None |
---|---|
Language | Haskell98 |
- replace :: AnnKey -> AnnKey -> Anns -> Maybe Anns
- replaceAnnKey :: (Data old, Data new) => Located old -> Located new -> Anns -> Anns
- copyAnn :: (Data old, Data new) => Located old -> Located new -> Anns -> Anns
- setAnnKeywordDP :: Data a => Located a -> KeywordId -> DeltaPos -> Transform ()
- clearPriorComments :: Data a => Located a -> Transform ()
- balanceAllComments :: Data a => Located a -> Transform (Located a)
Documentation
replace :: AnnKey -> AnnKey -> Anns -> Maybe Anns Source #
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.
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.