开发者

scripts to automatically manage imports or refactor modules

开发者 https://www.devze.com 2023-03-22 01:34 出处:网络
Does anyone know of tools to manage Haskell imports? Sometimes, I want to refact开发者_运维知识库or things by moving them to another file, and a script to generate the minimal set of imports [for the

Does anyone know of tools to manage Haskell imports? Sometimes, I want to refact开发者_运维知识库or 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消