Running stack build in Ubuntu 22.04 inside WSL2 (in Win 10) failed with an error along the lines of (forgot to copy the actual error before closing the terminal):
hspec-core > error: cannot find -ltinfo
hspec-core > error: ld returned 1 exit status
hspec-core > failed in phase `Linker'. (Exit code: 1)
Running
stack build
in Ubuntu 22.04 inside WSL2 (in Win 10) failed with an error along the lines of (forgot to copy the actual error before closing the terminal):Fixed by installing libtinfo
Maybe worth adding to list of common problems.