Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Special command parameter that governs the range modifier.
Documentation
data RangeStyle Source #
Neovim offers different semantics for the command range (see :help :command-range
).
This type determines the position (prefix line number/postfix count) and default values.
RangeFile | Prefix line range, defaulting to the entire file ( |
RangeLine (Maybe Nat) |
|
RangeCount (Maybe Nat) |
|
data Range (style :: RangeStyle) Source #
When this type is used as a parameter of a command handler function, the command is declared with the -range
option, and when invoked, the argument passed to the handler contains the line range specified by the user, as in:
:5Reverse :5,20Reverse
In the first case, the field $sel:high:Range
is Nothing
.
The type has a phantom parameter of kind RangeStyle
that configures the semantics of the range, as defined by
Neovim (see :help :command-range
).
Instances
Show (Range style) Source # | |
Eq (Range style) Source # | |
Typeable style => MsgpackDecode (Range style) Source # | |
Defined in Ribosome.Host.Data.Range fromMsgpack :: Object -> Either DecodeError (Range style) Source # | |
(BeforeRegular al (Range rs), RangeStyleOpt rs) => SpecialParam ('OptionState al c ac) (Range rs) Source # | |
Defined in Ribosome.Host.Handler.Command type TransSpecial ('OptionState al c ac) (Range rs) :: OptionState Source # | |
type TransSpecial ('OptionState al c ac) (Range rs) Source # | |
Defined in Ribosome.Host.Handler.Command |