I believe the Haskell LSP already provides that, but in case you don’t use it here are two blog posts that explain how to integrate ghcid into your (Neo)vim workflow: How I integrate ghcid with vim/neovim, Haskell dev workflow with ghcid and neovim. #haskell