facebookincubator / retrie

Retrie is a powerful, easy-to-use codemodding tool for Haskell.
MIT License
502 stars 30 forks source link

Integrate retrie with HLS or hie-bios #29

Open pepeiborra opened 3 years ago

pepeiborra commented 3 years ago

Standalone retrie cannot run the renamer since it doesn't know how to set up the GHC session, as discussed in #10. To address this, I propose integrating retrie as a command in HLS, reusing the ability for plugins to declare new commands added in https://github.com/haskell/haskell-language-server/pull/1999. This will give retrie access not only to the renamer and typechecker, but also to the hiedb.