apply-refact
apply-refact copied to clipboard
Pass GHC DynFlags to replaceWorker
This previously relied on the dynFlagsRef
being set but this only happened during parseModulesWithArgs
, meaning working directly on an already parsed module caused withDynFlags
to be used which failed on the undefined libdir
. This commit removes dynFlagsRef
and passes it explicitly.
This changes the API for applyRefactoring'
but it seems like it was broken before.