apply-refact icon indicating copy to clipboard operation
apply-refact copied to clipboard

Pass GHC DynFlags to replaceWorker

Open RaoulHC opened this issue 1 year ago • 0 comments

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.

RaoulHC avatar Aug 22 '23 12:08 RaoulHC