Check if HLS is available, get version info, and verify it can start
Checks if Haskell Language Server is installed and working by verifying PATH, version, and LSP startup. Use this when HLS isn't responding or after installation.
/plugin marketplace add m4dc4p/claude-hls/plugin install m4dc4p-hls@m4dc4p/claude-hlsPerform a comprehensive health check of the Haskell Language Server (HLS) installation.
Run these checks in order, reporting results for each:
Check if haskell-language-server-wrapper is available in PATH:
which haskell-language-server-wrapper || where haskell-language-server-wrapper
If not found, report common installation locations:
~/.ghcup/bin (GHCup - recommended)~/.local/bin~/.cabal/binIf found, get version information:
haskell-language-server-wrapper --version
Report the HLS version and supported GHC versions.
Verify HLS can initialize by checking it responds to a simple request. Run:
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"capabilities":{}}}' | timeout 10 haskell-language-server-wrapper --lsp 2>/dev/null | head -1
A valid JSON response indicates HLS can start successfully.
Report results clearly:
HLS Status Check
================
1. PATH: [PASS/FAIL] - location or "not found"
2. Version: [PASS/FAIL] - version string or error
3. Startup: [PASS/FAIL] - "responds to LSP" or error
Overall: [HEALTHY/ISSUES DETECTED]
If any check fails, suggest running the troubleshooting skill or checking the HLS documentation.