Does anyone know of tools to manage Haskell imports? Sometimes, I want to refactor things by moving them to another file, and a script to generate the minimal set of imports [for the new file] would be nice.
GHC can tell you which imports are required; simply add the -fwarn-unused-imports
flag.
There's a program called fix-imports that can generate a minimal set of imports for you. It only works for qualified imports, though.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With