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

Ribosome.Host.Data.HostConfig

Description

The configuration for a Ribosome plugin host.

Synopsis

Documentation

data LogConfig Source #

Logging config for a host, with different levels for Neovim echoing, stderr and file logs.

Note that stderr logging will be sent to Neovim when the plugin is running in remote mode, which will be ignored unless the plugin is started with a stderr handler.

Instances

Instances details
Generic LogConfig Source # 
Instance details

Defined in Ribosome.Host.Data.HostConfig

Associated Types

type Rep LogConfig :: Type -> Type #

Show LogConfig Source # 
Instance details

Defined in Ribosome.Host.Data.HostConfig

Default LogConfig Source # 
Instance details

Defined in Ribosome.Host.Data.HostConfig

Methods

def :: LogConfig #

Eq LogConfig Source # 
Instance details

Defined in Ribosome.Host.Data.HostConfig

type Rep LogConfig Source # 
Instance details

Defined in Ribosome.Host.Data.HostConfig

type Rep LogConfig = D1 ('MetaData "LogConfig" "Ribosome.Host.Data.HostConfig" "ribosome-host-0.9.9.9-5mVeOZw909e7nfaEBEbC5r" 'False) (C1 ('MetaCons "LogConfig" 'PrefixI 'True) ((S1 ('MetaSel ('Just "logFile") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Path Abs File))) :*: S1 ('MetaSel ('Just "logLevelEcho") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Severity)) :*: (S1 ('MetaSel ('Just "logLevelStderr") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Severity) :*: (S1 ('MetaSel ('Just "logLevelFile") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Severity) :*: S1 ('MetaSel ('Just "dataLogConc") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))))

newtype HostConfig Source #

The configuration for a host, which consists only of a LogConfig.

Constructors

HostConfig 

Fields

Instances

Instances details
Generic HostConfig Source # 
Instance details

Defined in Ribosome.Host.Data.HostConfig

Associated Types

type Rep HostConfig :: Type -> Type #

Show HostConfig Source # 
Instance details

Defined in Ribosome.Host.Data.HostConfig

Default HostConfig Source # 
Instance details

Defined in Ribosome.Host.Data.HostConfig

Methods

def :: HostConfig #

Eq HostConfig Source # 
Instance details

Defined in Ribosome.Host.Data.HostConfig

type Rep HostConfig Source # 
Instance details

Defined in Ribosome.Host.Data.HostConfig

type Rep HostConfig = D1 ('MetaData "HostConfig" "Ribosome.Host.Data.HostConfig" "ribosome-host-0.9.9.9-5mVeOZw909e7nfaEBEbC5r" 'True) (C1 ('MetaCons "HostConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "hostLog") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LogConfig)))

setStderr :: Severity -> HostConfig -> HostConfig Source #

Set the stderr level on a HostConfig.