Hls not working (client hls quit with exit code 1 and signal 0)

Hey, have been trying to set up haskell in nvim, but im having problems with hls. When i open .hs file it shows: “client hls quit with exit code 1 and signal 0”.
i installed stack 3.1.1 and cabal 3.10.3.0 using ghcup, using ghc 9.2.8 and installed hls using Mason in nvim.
Does anybody know what is wrong and how to fix it?

Logs:

[START][2024-08-21 19:45:01] LSP logging initiated
[ERROR][2024-08-21 19:45:01] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	"No 'hie"
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	".yaml' found. Try to discover the project type!\nRun entered for haskel"
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	"l-language-server-wrapper(haskell-language-server-wrapper) Version"
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	" 2.8.0.0 x86_64 ghc-9.2.8\nCurren"
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	"t directory: /home/matusu/.co"
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	"nfig/xmonad\n"
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	"Operating "
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	"system: linux\nArgume"
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	'nts: ["'
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	'--lsp"'
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	"]\nCr"
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	"adle directory: /home/matusu/.config/xmonad\nCradle type: Default\n"
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	"\nTool versions f"
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	"ound on the $PATH\ncabal:          3"
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	".10.3.0\nstack:         "
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	" 3.1.1\nghc:      "
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	"      9.2.8\n\n\nConsultin"
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	"g the cradle to get project GHC version...\n"
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	"2024-08-21T17:45:"
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	"02.198267Z | Debug | ghc --numeric-version\nProj"
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	"ect GHC version: 9.2."
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	"8\nhaskell-language-server exe "
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	'candidates: ["haskell-l'
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	'anguage-server-9.2.8","haskell-languag'
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	'e-server"]\n'
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	"Launching"
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	" haskell-language-server exe at:/home/matusu/.local/share/nvim/mason/bin/haskell-l"
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	"anguage-server-9.2.8\n"
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	"2024-08-21T17:45:0"
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	"2.386532Z | Debug | ghc -v0 -package-env=- -ignore-dot-gh"
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	"ci -e Control.Monad.join (Co"
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	"ntrol.Monad.fmap System.IO."
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	"putStr System.Environmen"
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	"t.getExecutablePath)\n"
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	"2024-08-21T17:45:"
[ERROR][2024-08-21 19:45:02] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	"02.439205Z | Debug | ghc --print-libdir\n"
[ERROR][2024-08-21 19:45:04] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	"\27[0;31mGHC ABIs don't match!\27[0m\n"
[ERROR][2024-08-21 19:45:04] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	"\27[0;31m\27[0m\n"
[ERROR][2024-08-21 19:45:04] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	"\27[0;31mExpected: Cabal-3.6.3.0:5fcc87b9a2a6b3bb13211366610dcccc array-0.5.4.0:4b2142702196aa5800165b234aa4dcfd base-4.16.4.0:302c41fb48282f47d99321331596b9f9 binary-0.8.9.0:b80ba93082e7ec472a7e5d23fc83779d bytestring-0.11.4.0:34b70710d136e3e9650a708789dd8943 containers-0.6.5.1:014556247cbbf331f4da62bc769e7614 deepseq-1.4.6.1:aafdb74493d816df3f5bed03fc30bddb directory-1.3.6.2:d03d5fbfb0e58005f0d8ffd2710e97c9 exceptions-0.10.4:b20991d8f250575e0d7db0e0fc64bb49 filepath-1.4.2.2:d6ab5cd15dfe12e976dc735f866207d6 ghc-9.2.8:74784f53dde31cb57db7c0a17b0835d1 ghc-bignum-1.2:4bf6905ca8cca85ad75c30d36c11b21d ghc-boot-9.2.8:c548a3a7ada42ed50fd18652995f6db0 ghc-boot-th-9.2.8:0459167572d09529e9ad209950f37353 ghc-compact-0.1.0.0:ef983547d2a21da16a420bab6ea66f9e ghc-heap-9.2.8:707fd7716500dd213daa664555dcbe6e ghc-prim-0.8.0:8fcacaf0e051765d2549d34af25d8721 ghci-9.2.8:c9840ffc3f4bafa5849d26c3339a072f haskeline-0.8.2:97f169b34e8097fdd097d43e86358a1d hpc-0.6.1.0:581715a9678b7a27400ba5a8865703cf integer-gmp-1.1:a749a068f2405fe3a2c35cf42bac3b95 libiserv-9.2.8:abe0add7f5804436fee0bb929a1822d8 mtl-2.2.2:5e83d170ce421645194aebd4f28acfef parsec-3.1.15.0:86de083de327925bb838eaa3e4dc454f pretty-1.1.3.6:190f90c93890e2c3cb10c3bd5c3ee9e7 process-1.6.16.0:951fd3aafc134ef178df1e1af6fe5d77 rts-1.0.2: stm-2.5.0.2:3780ad6fd3b3a8c67113c49e7c1d0ef1 template-haskell-2.18.0.0:e58e0c2abb7d1eb9649f40bc76f88cee terminfo-0.4.1.5:97d5b1b4652448e27c7d37bca9bc0858 text-1.2.5.0:da18735c2d8cd7310bfc4059338b77f3 time-1.11.1.1:a29a9a7753516bdfef7e75ba8c5c6598 transformers-0.5.6.2:3b0a13331e15f843dd53735b93b2367d unix-2.7.2.2:764e589a3c0bcc1d901d1991221ce5bb xhtml-3000.2.2.1:7bba065d960f673c566d0eda6914f4ee\27[0m\n"
[ERROR][2024-08-21 19:45:04] .../vim/lsp/rpc.lua:770	"rpc"	"/home/matusu/.local/share/nvim/mason/bin/haskell-language-server-wrapper"	"stderr"	"\27[0;31mGot:      Cabal-3.6.3.0:5bd1c5f06fc2e61e0b16151fe6185f7e array-0.5.4.0:4d91a3893c8bed5b267e4352abcc498e base-4.16.4.0:f4acf6ad2e1b5b50cd166fcb1f4697bf binary-0.8.9.0:3ba46cc9e860bb009b824f60c139b6ef bytestring-0.11.4.0:8abab34e443e8a74d9b8062d9cdf44cd containers-0.6.5.1:92e95d0a5219ae9bd17ef5c00a7d2982 deepseq-1.4.6.1:c28ad58197379de5ec19edbd9c25cae7 directory-1.3.6.2:9fb5a2fe5b6dac60dfb9824f6c2ca0be exceptions-0.10.4:3bf5f53a1b3e95efac254c41b8d2bcf8 filepath-1.4.2.2:957cb16b4564322b979b2fd6467a5ea5 ghc-9.2.8:18624fa0f59fd419ddad630039336046 ghc-bignum-1.2:4bf6905ca8cca85ad75c30d36c11b21d ghc-boot-9.2.8:4a4b0fbe20b37fb8e9ca80e9044d8667 ghc-boot-th-9.2.8:7d1b25209b54c68b99de4a1be151729d ghc-compact-0.1.0.0:321226cf0c38c3a28a981ed6e8c034c1 ghc-heap-9.2.8:c7d0066faaa88a4b213d80df623a39d5 ghc-prim-0.8.0:8fcacaf0e051765d2549d34af25d8721 ghci-9.2.8:6578997c979de020388b778ca0a45e86 haskeline-0.8.2:279931c6f30c362c1efa762e1286a86b hpc-0.6.1.0:62f5a7861a977359ad7733b9fead6e90 integer-gmp-1.1:21c20ffd2095a30619d4848fb1392323 libiserv-9.2.8:3c87db127a096ded756fb6201aa0d68d mtl-2.2.2:d620122b64a121900ab3b0a4d2f87db3 parsec-3.1.15.0:c69dd267c7d363bfbdd17bafddc17622 pretty-1.1.3.6:271223097007dba3973729c0747467a9 process-1.6.16.0:0b8c78ff0f435a1d5c2cf2d6e6947a49 rts-1.0.2:2881cf8549be49b0dd5a86a4989e8cd2 stm-2.5.0.2:d46401b837a8d291ba4ace8d08d288b1 template-haskell-2.18.0.0:5583a17889eac15c86419fff8d31fab2 terminfo-0.4.1.5:b409ea0fdad72de091fff2958f6c104f text-1.2.5.0:3bd1768e68fea2785703280c95c7e7e4 time-1.11.1.1:4f372784b5fa88229141fb1eb6e7efe7 transformers-0.5.6.2:902b1ce4e62013e852c6e5d6a424e74c unix-2.7.2.2:d926cc6c8e62f0b291d27b8a7b87ae94 xhtml-3000.2.2.1:c92cbe3774cd98f9cdccbb9408ba5a58\27[0m\n"

GHC ABIs don't match! means the haskell-language-server you’re using came from a different ghc. Try installing hls with ghcup before mason?

Tried to uninstall mason hls and installed it with ghcup and nothing changed. Also forgot to mension, this happens when i open xmonad config file, when i create project with stack and open Main: Failed to find hls for GHC 9.6.6. and ormolu is using ghc-lib-parser 9.6.6. for some reason. Ormolu was installed with stack. Tried to install newest version of hls and ghc 9.6.6. but that only got rid of error while opening Main and there is the same error as when opening xmonad config.