ribosome-host-0.9.9.9: Neovim plugin host for Polysemy
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ribosome.Host.Effect.UserError

Description

The effect UserError decides which messages to display in Neovim.

Synopsis

Documentation

data UserError :: Effect where Source #

The effect UserError decides which messages to display in Neovim.

Additionally, the text may be manipulated, which is done by the interpreter in Ribosome, which prefixes the message with the plugin name.

Constructors

UserError :: Text -> Severity -> UserError m (Maybe [Text])

Decide whether and how to display the given message at the given log level.

userError :: Member UserError r => Text -> Severity -> Sem r (Maybe [Text]) Source #

Decide whether and how to display the given message at the given log level.