homepage: https://github.com/owensmurray/om-plugin-imports
changelog-type: ''
hash: b04cdf922276619233a2ae1f35a7ee9f19ca9e88556d954a4153597d0a926d51
test-bench-deps: {}
maintainer: rick@owensmurray.com
synopsis: Plugin-based import warnings
changelog: ''
basic-deps:
  ghc: '>=9.0.2 && <9.1'
  base: ==4.15.*
  containers: '>=0.6.4.1 && <0.7'
  om-plugin-imports: -any
all-versions:
- 0.1.0.0
author: Rick Owens
latest: 0.1.0.0
description-type: markdown
description: |+
  # om-plugin-imports

  This plugin behaves similarly to the native GHC options
  `-ddump-minimal-imports`. If (and only if) you specify a `-dumpdir` directory
  to GHC, this plugin will emit files to that directory that contain a
  normalized, complete set of explicit imports for your module. This is sort of
  what `-ddump-minimal-imports` does, but `-ddump-minimal-imports` has the
  following deficiencies:

  * It will not always produce output that satisfies `-Wmissing-import-lists`.
    E.g. it will sometimes produce something like:

    ```
    import Foo (Bar(..))
    ```
  * It will explicitly import all the names from modules which are already
    qualified, E.g:
    ```
    import qualified Foo as F (foo, bar, baz)
    ```

  This plugin solves these problems. It will dump
  a file in the user-supplied `-dumpdir` of the form
  `<dumpdir>/<module-name>.full-imports`. The file will contain a set of
  imports which can be copy/pasted over the imports in your module in a
  way that satisfies `-Wmissing-import-lists`.

license-name: MIT

Update from Hackage at 2022-11-20T21:48:29Z
Update from Hackage at 2022-11-20T21:48:29Z
