haskell-language-server icon indicating copy to clipboard operation
haskell-language-server copied to clipboard

Use Hackage fixities in Fourmolu CLI mode

Open georgefst opened this issue 2 years ago • 1 comments

See https://github.com/haskell/haskell-language-server/issues/3421.

Could do with a test.

(EDIT: I've forgotten exactly how this relates to https://github.com/haskell/haskell-language-server/pull/3165...)

(EDIT: I'm also now confused as to why I wanted to pass --no-cabal in the first place in https://github.com/haskell/haskell-language-server/pull/2950 (sub-EDIT ah, probably just performance). We should also look at https://github.com/haskell/haskell-language-server/issues/3449 and https://github.com/haskell/haskell-language-server/pull/3771 and see whether Ormolu has similar issues.)

georgefst avatar Jan 17 '23 01:01 georgefst

Can we somehow instead pass the actual accurate fixities that GHC computes for the file to fourmolu? It seems strange to rely on hacks when in HLS we know the actual fixities for everything as soon as a file compiles.

wz1000 avatar Feb 07 '23 13:02 wz1000