Closed xich closed 8 years ago
Thanks, will do. Starting to prepare the GHC-8.0.1 release
Meant to say:
cloneT ast = do
anns <- getAnnsT
graftT anns ast
Don't remember why I stripped the Writer stuff out... probably just because I wasn't using it.
I have found this function useful when copying an AST fragment from one module to another:
(it is a slightly more general form of
cloneT
)Pasting here in case you want to include it with ghc-exactprint.