Closed
Description
Steps to reproduce
- Have a ghc options pragma (or shebang) in the middle of the file somewhere. Both cases seem to compile fine...
- Disable an extension that the file needs.
- Use a code action to insert the extension back in.
Expected behaviour
The extension should be put after the last pragma at the top of the file somewhere before the module declaration.
Actual behaviour
The extension is inserted after the ghc options pragma (or shebang) in the middle of the file.
Working on a fix for this so that my fix for something else can work.