Still fighting a lot with haskell. I thought nix would be perfect for haskell but I am at a stage where it just make things more complex. My current challenge is to have
go to <haskell word under cursor> definition succeed in neovim. My first reflex was to turn to LSP but haskell-ide-engine doesn’t seem ready yet (https://github.com/haskell/haskell-ide-engine/issues/308).
My fallback approach (which works great for other languages) is to generate a ctags database readable by neovim. I thus experimented with hasktags/haskdogs but I can’t get it to generate tags for the packages built with the ghc environment (https://github.com/grwlf/haskdogs/issues/4#issuecomment-442359789). Apparently I need to run cabal update but it complains about the absence of remote servers. I’ve then read about nix-style cabal to no avail.
Thus my question is how do you people achieve “go to definition” for haskell on nixos ?!!!
I tried to program with the doc open in another editor/browser but I can’t take it anymore, “goto” is so much more convenient.
While investigating, the previous problem, I’ve had another one:
from times to times, I have errors about a “./settings” file. I don’t think it comes from my configuration
cabal new-build cabal: '/nix/store/zw8v27qx8vz2wridkhfdbbah2sz6633i-ghc-8.4.4-with-packages/bin/ghc' exited with an error: ./settings: openFile: does not exist (No such file or directory)
when I look at the strace, there seems to be
18953 openat(AT_FDCWD, "./settings", O_RDONLY|O_NOCTTY|O_NONBLOCK) = -1 ENOENT (No such file or directory)
I’ve found a similar post without understanding the root cause https://github.com/DanielG/ghc-mod/issues/766 .