nvim-hs-ghcid

Neovim plugin that runs ghcid to update the quickfix list

https://github.com/saep/nvim-hs-ghcid

Version on this page:2.0.0.0
LTS Haskell 22.36:2.0.1.0
Stackage Nightly 2024-10-03:2.0.1.0
Latest on Hackage:2.0.1.0

See all snapshots nvim-hs-ghcid appears in

Apache-2.0 licensed by Sebastian Witte
Maintained by [email protected]
This version can be pinned in stack with:nvim-hs-ghcid-2.0.0.0@sha256:2e270fe93981a500e050ca552012ca08ac6976ef2f835079fda20f6f8308e32b,2631

Module documentation for 2.0.0.0

nvim-hs-ghcid

Ghcid integration plugin for nvim-hs.

This plugin fills the quickfix list with location of compiler errors and warnings. Warnings are only added to the quickfix list if no errors are present.

Installation

Add the plugin to your nvim-hs config file.

Sample configuration file:


import Neovim

import qualified Neovim.Ghcid as Ghcid

main :: IO ()
main = neovim defaultConfig
    { plugins = defaultPlugins defaultConfig ++ [ Ghcid.plugin ]
    }

Usage

:GhcidStart

To initialize a Ghcid session which will fill the quickfix list on errors/warnings. If you add a bang, it will not ask you for the configuration and uses the last saved configuration for the project or guesses a configuration.

:GhcidStop

Stop the Ghcid session for the project in which the current file resides.

:GhcidRestart

Same as :GhcidStop followed by :GhcidStart!.