Closed
Description
Here's a weird one: first imports are inserted in wrong place. Unsure why.
Your environment
Output of haskell-language-server --probe-tools
or haskell-language-server-wrapper --probe-tools
:
askell-language-server version: 1.3.0.0 (GHC: 8.10.4) (PATH: /Users/emilypi/.ghcup/bin/haskell-language-server-wrapper-1.3.0) (GIT hash: e7c5e90b6df5dff2760d76169eddaea3bdd6a831)
Tool versions found on the $PATH
cabal: 3.4.0.0
stack: 2.5.1
ghc: 8.10.4
Which OS do you use:
MacOS Big Sure
Which lsp-client do you use:
Emacs
Describe your project (alternative: link to the project):
*.cabal files, cabal.project
Contents of hie.yaml
:
cradle:
cabal:
- path: "src"
component: "lib:order"
- path: "test"
component: "order:test:doctests"
Steps to reproduce
- Make a first import with functions defined (along with comments)
- Import goes in wrong place.
- If importing another thing, imports are added below first import
- However, when physically moved, to the right spot, imports work as expected.
Expected behaviour
Imports should be inserted in correct area of the module.
Actual behaviour
The first import is inserted above the first signicant decl, regardless of comments.