Is there any support tool with explicit import of modules in Haskell?

After considering the reasons here , to explicitly import the modules (with the exception of Prelude ), I try to comply with this rule, however, sometimes it can be cumbersome. Is there any tool that would analyze working code and give a complete list of explicit imports?

+7
import module conventions haskell
source share
1 answer

There is a flag -ddump-minimal-imports for ghc .

Results are placed in a file (module-name).imports .

The -fno-code ghc option is also useful here (to avoid the code generation phase.)

+7
source share

All Articles