Hoogle Search
Within LTS Haskell 24.40 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
type
FunctionMap = Map NvimMethod FunctionMapEntrynvim-hs Neovim.Context.Internal A function map is a map containing the names of functions as keys and some context dependent value which contains all the necessary information to execute that function in the intended way. This type is only used internally and handles two distinct cases. One case is a direct function call, wich is simply a function that accepts a list of Object values and returns a result in the Neovim context. The second case is calling a function that has a persistent state. This is mediated to a thread that reads from a TQueue. (NB: persistent currently means, that state is stored for as long as the plugin provider is running and not restarted.)
type
FunctionMapEntry = (FunctionalityDescription, FunctionType)nvim-hs Neovim.Context.Internal Type of the values stored in the function map.
globalFunctionMap :: Config env -> TMVar FunctionMapnvim-hs Neovim.Context.Internal This map is used to dispatch received messagepack function calls to it's appropriate targets.
mkFunctionMap :: [FunctionMapEntry] -> FunctionMapnvim-hs Neovim.Context.Internal Create a new function map from the given list of FunctionMapEntry values.
printGlobalFunctionMap :: NvimHSDebugInstance -> IO ()nvim-hs Neovim.Debug Print the global function map to the console.
-
one-liner Generics.OneLiner Map each component of a structure to a monoid, and combine the results. If you have a class Size, which measures the size of a structure, then this could be the default implementation:
size = succ . getSum . gfoldMap @Size (Sum . size)
gfoldMap is gtraverse specialized to Const. -
one-liner Generics.OneLiner foldMap = gfoldMap1 @Foldable foldMap
gfoldMap1 is gtraverse1 specialized to Const. -
one-liner Generics.OneLiner Map each component of a structure to a linear monoid, and combine the results. For example. this could be the default implementation of Consumable:
consume = glfoldMap @Consumable consume
glfoldMap is gltraverse specialized to Const. glmap :: forall c t . (ADT t, Constraints t c) => (forall s . c s => s % 1 -> s) -> t % 1 -> tone-liner Generics.OneLiner Map over a structure linearly, updating each component. glmap is generic specialized to the linear arrow.
-
one-liner Generics.OneLiner fmap = gmap1 @Functor fmap
glmap1 is generic1 specialized to the linear arrow.