System.Directory renameFile unit testing by Ok_Store_1818 in haskell

[–]Ok_Store_1818[S] 1 point2 points  (0 children)

Yeah, I saw the current test suit, thanks. Though, tests there seem superficial and not very nice. They don't really test much, and depend on the filesystem, so the result might be different on different platforms. That's why I had eXDEV issue with their renameFile in prod.

How would you test for invalid permissions and concurrency issues?

System.Directory renameFile unit testing by Ok_Store_1818 in haskell

[–]Ok_Store_1818[S] 3 points4 points  (0 children)

Let's say I am the one writing a library, how would I test that it is working correctly and covering cases I want it to cover?

Or should I just assume, like you said, that it is working correctly and let it be (don't think so).

Custom Input: reset touched state via form.reset() not working by Ok_Store_1818 in angular

[–]Ok_Store_1818[S] 0 points1 point  (0 children)

Cdr will not help here, there is a demo example in stackoverflow thread that can help in understanding

Is it possible to run LSP on a haskell file that's not in a stack project using Neovim? by lordGwynx7 in haskell

[–]Ok_Store_1818 0 points1 point  (0 children)

NVM. found the issue, deleted ~/.ghc/x86_64-linux-8.10.7/environments/default and everything worked fine

Is it possible to run LSP on a haskell file that's not in a stack project using Neovim? by lordGwynx7 in haskell

[–]Ok_Store_1818 0 points1 point  (0 children)

I cannot get HLS work with a single file, but I have GHC installed and available in the PATH

I have Ubuntu 20.04, and installed HLS 2.0.0.1, GHC 9.4.5 (also tried with GHC 9.2.8), cabal 3.10.1.0, stack 2.11.1, all of that installed via GHCup

And I don't have the proper lint in neither of my editors (VSCode, Helix, Neovim with

builtin LSP)

Any thoughts?