nvim-hs-2.3.2.3: Haskell plugin backend for neovim
Copyright(c) Sebastian Witte
LicenseApache-2.0
Maintainerwoozletoff@gmail.com
Stabilityexperimental
PortabilityGHC
Safe HaskellSafe-Inferred
LanguageHaskell2010

Neovim.Exceptions

Description

 
Synopsis

Documentation

data NeovimException Source #

Exceptions specific to nvim-hs.

Constructors

ErrorMessage (Doc AnsiStyle)

Simple error message that is passed to neovim. It should currently only contain one line of text.

ErrorResult (Doc AnsiStyle) Object

Error that can be returned by a remote API call. The Doc argument is the name of the remote function that threw this exception.

catchNeovimException :: MonadUnliftIO io => io a -> (NeovimException -> io a) -> io a Source #

Specialization of catch for NeovimExceptions.