{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreibvomvh2tqsvjhwmqt3dreazm3l4pzs4wubehtojpohiaevmalvha",
"uri": "at://did:plc:pi6woz4d47bkuws673w2il2r/app.bsky.feed.post/3mhabyafg7cw2"
},
"path": "/t/how-to-practically-enable-wmissing-import-lists/13810#post_7",
"publishedAt": "2026-03-16T21:48:09.000Z",
"site": "https://discourse.haskell.org",
"tags": [
"om-plugin-imports",
"the readme"
],
"textContent": "This does not quite address your concerns exactly, but it is related. I maintain a compiler plugin called om-plugin-imports, which dumps a canonical list of imports that you can copy-paste into your module that satisfies `-Wmissing-import-lists`. (see the readme)\n\nIt could be easily modified to create a plugin-based solution for exactly what you want. i.e. you wouldn’t actually use `-Wmissing-importlists` in your codebase. You would instead use a modified version of this plugin, which gave you the exact behavior you were looking for (a compile error when there are any missing imports except Prelude).\n\n-Rick",
"title": "How to practically enable `-Wmissing-import-lists`?"
}