!y(X      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdef g h i j k l m n o p q r s t u v w x y z { | } ~                      ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < =>?@A B C D E F G H I J K L MNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWNoneX_8XYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~4545General Exceptions(c) Sebastian Witte Apache-2.0woozletoff@gmail.com experimentalGHCNone2X_A6nvim-hsExceptions specific to nvim-hs.7nvim-hsbSimply error message that is passed to neovim. It should currently only contain one line of text.8nvim-hs;Error that can be returned by a remote API call. A call of  fromObject1 on this value could be converted to a value of NeovimExceptionGen.67896789=Type classes used for conversion of msgpack and Haskell types(c) Sebastian Witte Apache-2.0woozletoff@gmail.com experimentalNone =>?@ASX_S =nvim-hsConversion from $J files to Haskell types and back with respect to neovim's interpretation.The  constraint has been added to allow forcing results of function evaluations in order to catch exceptions from pure code. This adds more stability to the plugin provider and seems to be a cleaner approach.Bnvim-hsA generic vim dictionary is a simply a map from strings to objects. This type alias is sometimes useful as a type annotation especially if the OverloadedStrings extension is enabled.Cnvim-hs(Convenient operator to create a list of $ from normal values. T values +: of :+ different :+ types :+ can +: be +: combined +: this +: way +: [] Dnvim-hs Convert a --ument to a messagepack $. This is more a convenience method to transport error message from and to neovim. It generally does not hold that 'docToObject . docFromObject' = .Envim-hsSee D.Snvim-hs#Right-biased instance for toObject.'   ,-0/.2=@>?ABCDEF=@>?ABCDEF-20/., C5 )P.Parser for the msgpack output stram API(c) Sebastian Witte Apache-2.0woozletoff@gmail.com experimentalNoneX_` fnvim-hs9This data type represents the top-level structure of the nvim --api-info output.hnvim-hs8The error types are defined by a name and an identifier.invim-hs"Extension types defined by neovim.jnvim-hs=The remotely executable functions provided by the neovim api.knvim-hsUThis data type contains simple information about a function as received throudh the nvim --api-info command.mnvim-hs function namennvim-hs&A list of type name and variable name.onvim-hs:Indicator whether the function can fail/throws exceptions.pnvim-hs4Indicator whether the this function is asynchronous.qnvim-hsFunctions return type.vnvim-hsRun nvim --api-info and parse its output.fghijklpmnoqrustvfghijklpmnoqrustv Logging utilities and reexports(c) Sebastian Witte Apache-2.0woozletoff@gmail.com experimentalGHCNoneX_gU{nvim-hsDisable logging to stderr.|nvim-hsInitialize the root logger to avoid stderr and set it to log the given file instead. Simply wrap the main entry point with this function to initialze the logger. main = | "/home/dude/nvim.log" Debug $ do   "Hello, World!" #   !"#{|{| )Classes and data types related to plugins(c) Sebastian Witte Apache-2.0woozletoff@gmail.com experimentalGHCNone"#7X_u}nvim-hs5Conveniennce class to extract a name from some value.nvim-hs5Options that can be used to register an autocmd. See  :h :autocmdG or any referenced neovim help-page from the fields of this data type.nvim-hs#Pattern to match on. (default: "*")nvim-hs Nested autocmd. (default: False)See :h autocmd-nestednvim-hs0Group in which the autocmd should be registered.nvim-hsYou can use this type as the first argument for a function which is intended to be exported as a command. It holds information about the special attributes a command can take.nvim-hs$i means that the function was not defined to handle a bang, otherwise it means that the bang was passed (% &*) or that it was not passed when called (% ').nvim-hs&Range passed from neovim. Only set if 4 was used in the export declaration of the command.Example:  Just (1,12)nvim-hs$Count passed by neovim. Only set if 4 was used in the export declaration of the command.nvim-hs.Register that the command can/should/must use.nvim-hs6Specification of a range that acommand can operate on.nvim-hs6The line the cursor is at when the command is invoked.nvim-hs2Let the command operate on every line of the file.nvim-hs8Let the command operate on each line in the given range.nvim-hsNewtype wrapper for a list of y. Any properly constructed object of this type is sorted and only contains zero or one object for each possible option.nvim-hsOptions for commands.vSome command can also be described by using the OverloadedString extensions. This means that you can write a literal () inside your source file in place for a } value. See the documentation for each value on how these strings should look like (Both versions are compile time checked.)nvim-hsStringliteral "sync" or "async"nvim-hsRegister passed to the command.Stringliteral: "\""nvim-hs,Command takes a specific amount of argumentsuAutomatically set via template haskell functions. You really shouldn't use this option yourself unless you have to.nvim-hs'Determines how neovim passes the range.Stringliterals: "%" for 9, "," for line and ",123" for 123 lines.nvim-hsACommand handles a count. The argument defines the default count.-Stringliteral: string of numbers (e.g. "132")nvim-hsCommand handles a bangStringliteral: "!"nvim-hsaThis option detemines how neovim should behave when calling some functionality on a remote host.nvim-hsCall the functionality entirely for its side effects and do not wait for it to finish. Calling a functionality with this flag set is completely asynchronous and nothing is really expected to happen. This is why a call like this is called notification on the neovim side of things.nvim-hsCall the function and wait for its result. This is only synchronous on the neovim side. This means that the GUI will (probably) not allow any user input until a reult is received.nvim-hs6Functionality specific functional description entries.All fields which are directly specified in these constructors are not optional, but can partialy be generated via the Template Haskell functions. The last field is a data type that contains all relevant options with sensible defaults, hence  can be used as an argument.nvim-hs Exported function. Callable via call name(arg1,arg2).:Name of the function (must start with an uppercase letter)FOption to indicate how neovim should behave when calling this functionnvim-hsExported Command. Callable via :Name arg1 arg2.9Name of the command (must start with an uppercase letter)>Options to configure neovim's behavior for calling the commandnvim-hsQExported autocommand. Will call the given function if the type and filter match.oNB: Since we are registering this on the Haskell side of things, the number of accepted arguments should be 0.)Type of the autocmd (e.g. "BufWritePost")Name for the function to call&Whether to use rpcrequest or rpcnotifyOptions for the autocmd (use + here if you don't want to change anything)nvim-hsEssentially just a string.nvim-hsSmart constructor for . This sorts the command options and removes duplicate entries for semantically the same thing. Note that the smallest option stays for whatever ordering is defined. It is best to simply not define the same thing multiple times.(}~(}~+Classes used for Inter Plugin Communication(c) Sebastian Witte Apache-2.0woozletoff@gmail.com experimentalGHCNone "#27EX_ȝ nvim-hsA notification is similar to a . It essentially does the same thing, but the function is only called for its side effects. This type of message is sent by neovim if the caller there does not care about the result of the computation.nvim-hsName of the function to call.nvim-hsArguments for the function.nvim-hsA request is a data type containing the method to call, its arguments and an identifier used to map the result to the function that has been called.nvim-hsName of the function to call.nvim-hs;Identifier to map the result to a function call invocation.nvim-hsArguments for the function.nvim-hsCHaskell representation of supported Remote Procedure Call messages.nvim-hs,Method name, parameters, callback, timestampnvim-hs'This class allows type safe casting of e to an actual message. The cast is successful if the type you're expecting matches the type in the  wrapper. This way, you can subscribe to an arbitrary message type withouth having to pattern match on the constructors. This also allows plugin authors to create their own message types without having to change the core code of nvim-hs.nvim-hsfTry to convert a given message to a value of the message type we are interested in. Will evaluate to $ for any other type.nvim-hswTaken from xmonad and based on ideas in /An Extensible Dynamically-Typed Hierarchy of Exceptions/, Simon Marlow, 2006.iUser-extensible messages must be put into a value of this type, so that it can be sent to other plugins. 3 3/Communication between Haskell processes/threads(c) Sebastian Witte Apache-2.0woozletoff@gmail.com experimentalNoneX_I >Abstract description of the plugin provider's internal context(c) Sebastian Witte Apache-2.0woozletoff@gmail.com experimentalGHCNone &'2=?@AMX_ nvim-hs:The state that the plugin provider wants to transition to.nvim-hsQuit the plugin provider.nvim-hsRestart the plugin provider.nvim-hs@The plugin provider failed to start or some other error occured.nvim-hs)The plugin provider started successfully.nvim-hs$This GADT is used to share information between stateless and stateful plugin threads since they work fundamentally in the same way. They both contain a function to register some functionality in the plugin provider as well as some values which are specific to the one or the other context.nvim-hsA wrapper for a reader value that contains extra fields required to communicate with the messagepack-rpc components and provide necessary data to provide other globally available operations.ZNote that you most probably do not want to change the fields prefixed with an underscore.nvim-hs_A queue of messages that the event handler will propagate to appropriate threads and handlers.nvim-hs#The main thread will wait for this )Z to be filled with a value and then perform an action appropriate for the value of type .nvim-hsSince nvim-hs must have its Neovim.RPC.SocketReader and Neovim.RPC.EventHandler7 running to determine the actual channel id (i.e. the *e value here) this field can only be set properly later. Hence, the value of this field is put in an +z. Name that is used to identify this provider. Assigning such a name is done in the neovim config (e.g. ~/.nvim/nvimrc).nvim-hsThis ,: is used to generate uniqe function names on the side of nvim-hsg. This is useful if you don't want to overwrite existing functions or if you create autocmd functions.nvim-hs^This map is used to dispatch received messagepack function calls to it's appropriate targets. nvim-hsIn a registered functionality this field contains a function (and possibly some context dependent values) to register new functionality.!nvim-hsUPlugin author supplyable custom configuration. Queried on the user-facing side with * or )."nvim-hsA 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 $$ values and returns a result in the &~ context. The second case is calling a function that has a persistent state. This is mediated to a thread that reads from a -{. (NB: persistent currently means, that state is stored for as long as the plugin provider is running and not restarted.)#nvim-hs.Type of the values stored in the function map.$nvim-hsWThis data type is used to dispatch a remote function call to the appopriate recipient.%nvim-hs%4 functions are handled within a special thread, the -B is the communication endpoint for the arguments we have to pass.&nvim-hsCThis is the environment in which all plugins are initially started.!Functions have to run in this transformer stack to communicate with neovim. If parts of your own functions dont need to communicate with neovim, it is good practice to factor them out. This allows you to write tests and spot errors easier. Essentially, you should treat this similar to . in general haskell programs.)nvim-hsSame as * for the InternalConfig.*nvim-hsSame as ) for the InternalConfig.,nvim-hs Initialize a & context by supplying an InternalEnvironment..nvim-hspCreate a new unique function name. To prevent possible name clashes, digits are stripped from the given suffix./nvim-hs1Create a new function map from the given list of # values.0nvim-hsSConvenient helper to create a new config for the given state and read-only config. Sets the   field to $.1nvim-hs Create a new InternalConfigB object by providing the minimal amount of necessary information.-This function should only be called once per nvim-hs: session since the arguments are shared across processes.6nvim-hs6User facing instance declaration for the reader state.  !"#$%&'()*+,-./01 &'()*+,-.$%#"/ !01The Neovim context(c) Sebastian Witte Apache-2.0woozletoff@gmail.com experimentalNoneX_=nvim-hs/ specialized to a 0 value.?nvim-hs*Initiate a restart of the plugin provider.@nvim-hs0Initiate the termination of the plugin provider.0 %&'()*+-26789F"#&,./=>?@.&6789"#/,=>?@*)(%'&-2F+ KSplit module that can import Neovim.Context without creating import circles(c) Sebastian Witte Apache-2.0woozletoff@gmail.com experimentalGHCNoneEX_?Anvim-hsC- values are wraped inside this data type via K1 so that we can put plugins in an ordinary list.Cnvim-hs@This data type contains meta information for the plugin manager.Gnvim-hsVThis data type is used in the plugin registration to properly register the functions.Invim-hsExtract the description of an G.Jnvim-hsExtract the function of an G.Knvim-hsWrap a CB in some nice blankets, so that we can put them in a simple list. ABCDEFGHIJK GHJIABCDEFK.The user editable and compilable configuration(c) Sebastian Witte Apache-2.0woozletoff@gmail.com experimentalNoneX_&Mnvim-hsThis data type contains information about the configuration of neovim. See the fields' documentation for what you possibly want to change. Also, the tutorial in the Neovim module should get you started.Onvim-hsThe list of plugins. The IO type inside the list allows the plugin author to run some arbitrary startup code before creating a value of type A.Pnvim-hs Set the general logging options. MNOP MNOP-Data types and classes for the RPC components(c) Sebastian Witte Apache-2.0woozletoff@gmail.com experimentalGHCNone"#27X_0Qnvim-hsSee  >https://github.com/msgpack-rpc/msgpack-rpc/blob/master/spec.md2 for details about the msgpack rpc specification.Rnvim-hs5Request in the sense of the msgpack rpc specificationzParameters * Message identifier that has to be put in the response to this request * Function name * Function argumentsSnvim-hs5Response in the sense of the msgpack rpc specifcation;Parameters * Mesage identifier which matches a request * 1 an error $ or a result $Tnvim-hs:Notification in the sense of the msgpack rpc specificationQRTSQRTS"Common functons for the RPC module(c) Sebastian Witte Apache-2.0woozletoff@gmail.com experimentalNoneSX_C ]nvim-hsJSimple data type defining the kind of socket the socket reader should use.^nvim-hsxUse the handle for receiving msgpack-rpc messages. This is suitable for an embedded neovim which is used in test cases._nvim-hs?Read the connection information from the environment variable NVIM_LISTEN_ADDRESS.`nvim-hsUse a unix socket.anvim-hsNUse an IP socket. First argument is the port and the second is the host name.bnvim-hs>Things shared between the socket reader and the event handler.dnvim-hsTA map from message identifiers (as per RPC spec) to a tuple with a timestamp and a +D that is used to communicate the result back to the calling thread.envim-hs8Message identifier for the next message as per RPC spec.fnvim-hsCreate a new basic configuration containing a communication channel for remote procedure call events and an empty lookup table for functions to mediate.gnvim-hs Create a 2# from the given socket description.'The handle is not automatically closed.hnvim-hs\Close the handle and print a warning if the conduit chain has been interrupted prematurely. ]a`^_bcedfgh bcedf]a`^_ghFunctions for calling functions(c) Sebastian Witte Apache-2.0woozletoff@gmail.com experimentalNone"#X_[J 3nvim-hsSimply fail and call 4 in case an unexpected exception is thrown. This fails with a runtime exception. It is used by the Template Haskell API generator for functions that are defined as not being able to fail. If this exception occurs, it is a bug in neovim.5nvim-hsStrip the error result from the function call. This should only be used by the Template Haskell API generated code for functions that declare themselves as unfailable.invim-hs)Helper function that concurrently puts a # in the event queue and returns an 6 action that returns the result.jnvim-hsHelper function similar to iC that throws a runtime exception if the result is an error object.knvim-hsZCall a neovim function synchronously. This function blocks until the result is available.lnvim-hs Similar to k, but throw a 6 instead of returning it.mnvim-hsHelper function similar to kC that throws a runtime exception if the result is an error object.nnvim-hsLifted variant of 7.onvim-hs&Wait for the result of the STM action.3This action possibly blocks as it is an alias for ' ioSTM -> ioSTM >>= liftIO . atomically.pnvim-hs Variant of o that discards the result.qnvim-hs,Send the result back to the neovim instance.5nvim-hsFor better error messagesknvim-hsParameters in an $ arraynvim-hs0result value of the call or the thrown exception ijklmnopq ijkmlnopqEvent handling loop(c) Sebastian Witte Apache-2.0woozletoff@gmail.com experimentalNoneMX__8nvim-hs8Convenient monad transformer stack for the event handlerrnvim-hsdThis function will establish a connection to the given socket and write msgpack-rpc requests to it.rr&Template Haskell API generation module(c) Sebastian Witte Apache-2.0woozletoff@gmail.com experimentalNone$X_ 9nvim-hs:Simply data type used to identify a string-ish type (e.g. (, :, ; for a value of type.<nvim-hs;Maps type identifiers from the neovim API to Haskell types.xnvim-hs1Generate the API types and functions provided by nvim --api-info.The provided map allows the use of different Haskell types for the types defined in the API. The types must be an instance of =z and they must form an isomorphism with the sent messages types. Currently, it provides a Convenient way to replace the String type with :, ; or (.=nvim-hsVThis function will create a wrapper function with neovim's function name as its name.Synchronous function: w buffer_get_number :: Buffer -> Neovim Int64 buffer_get_number buffer = scall "buffer_get_number" [toObject buffer] Asynchronous function: _ vim_eval :: String -> Neovim (TMVar Object) vim_eval str = acall "vim_eval" [toObject str] /Asynchronous function without a return value:  vim_feed_keys :: String -> String -> Bool -> Neovim () vim_feed_keys keys mode escape_csi = acallVoid "vim_feed_keys" [ toObject keys , toObject mode , toObject escape_csi ] >nvim-hs5 createDataTypeWithObjectComponent SomeName [Foo,Bar] will create this: i data SomeName = Foo !Object | Bar !Object deriving (Typeable, Eq, Show) ?nvim-hsIf the first parameter is mkName NeovimException , this function will generate "instance Exception NeovimException.@nvim-hs+customTypeInstance Foo [(Bar, 1), (Quz, 2)] will create this: - instance Serializable Foo where toObject (Bar bs) = ObjectExt 1 bs toObject (Quz bs) = ObjectExt 2 bs fromObject (ObjectExt 1 bs) = return $ Bar bs fromObject (ObjectExt 2 bs) = return $ Quz bs fromObject o = Left $ "Object is not convertible to: Foo Received: " <> show o |nvim-hshDefine an exported function by providing a custom name and referencing the function you want to export.8Note that the name must start with an upper case letter. Example: 5 $(function "MyExportedFunction" 'myDefinedFunction) Sync }nvim-hs>Define an exported function. This function works exactly like |b, but it generates the exported name automatically by converting the first letter to upper case.Anvim-hsGiven a value of type BF, test whether it can be classified according to the constructors of ArgType.~nvim-hs Similarly to |@, this function is used to export a command with a custom name.8Note that commands must start with an upper case letter.Due to limitations on the side of (neo)vim, commands can only have one of the following five signatures, where you can replace ( with ; or : if you wish: -> & r st () -> C ( -> & r st () -> ( -> & r st () -> [(] -> & r st () -> ( -> [(] -> & r st () Example: . $(command "RememberThePrime" 'someFunction) [] Note that the list of command options (i.e. the last argument) removes duplicate options by means of some internally convenient sorting. You should simply not define the same option twice.nvim-hs=Define an exported command. This function works exactly like ~R, but it generates the command name by converting the first letter to upper case.Dnvim-hsGenerate a function of type [Object] -> Neovim' Object from the argument function.The function ' add :: Int -> Int -> Int add = (+)  will be converted to 3 args -> case args of [x,y] -> case pure add  * fromObject x  *u fromObject y of Left e -> err $ "Wrong type of arguments for add: " ++ e Right action -> toObject  $J action _ -> err $ "Wrong number of arguments for add: " ++ show xs E FGHIJKLMN  $#"! ,-0/.2OPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~=@>?ABCDEFxyz{|}~ x|}~yz{Text based API(c) Sebastian Witte Apache-2.0woozletoff@gmail.com experimentalGHCNone27SX_      !"#$%&'()*+,-./0123456789:;<=>?@@?>=<;:9876543210/.-,+*)('&%$#"!      String based API(c) Sebastian Witte Apache-2.0woozletoff@gmail.com experimentalNone27SX_{VWXYZ[\^]_`abcdefghijklmnopqrstuvwxyz{|}~     \^]Z[XYVW     ~}|{zyxwvutsrqponmlkjihgfedcba`_*API for interacting with the quickfix list(c) Sebastian Witte Apache-2.0woozletoff@gmail.com experimentalGHCNone"#7X_ (nvim-hsCAdd items to the current list (or create a new one if none exists).)nvim-hs:Replace current list (or create a new one if none exists).*nvim-hsCreate a new list.+nvim-hsSimple error type enum..nvim-hsKQuickfix list item. The parameter names should mostly conform to those in :h setqflist()o. Some fields are merged to explicitly state mutually exclusive elements or some other behavior of the fields.see >< for creating a value of this type without typing too much.0nvim-hsYSince the filename is only used if no buffer can be specified, this field is a merge of bufnr and filename.1nvim-hs2Line number or search pattern to locate the error.2nvim-hs\A tuple of a column number and a boolean indicating which kind of indexing should be used. &/ means that the visual column should be used. ' means to use the byte index.3nvim-hs Error number.4nvim-hsDescription of the error.5nvim-hsType of error.=nvim-hs"This is a wrapper around neovim's  setqflist(). strType2 can be any string that you can append to (hence ) that is also an instance of =!. You can e.g. use the plain old (.>nvim-hs Create a .6 by providing the minimal amount of arguments needed.>nvim-hsbuffer of file namenvim-hsline number or pattern')(*+,-./5321046879<;:=>=9<;:687./532104+,->')(**Plugin and functionality registration code(c) Sebastian Witte Apache-2.0woozletoff@gmail.com experimentalGHCNone "#&'X_|nvim-hs]Callthe vimL functions to define a function, command or autocmd on the neovim side. Returns & if registration was successful.7Note that this does not have any effect on the side of nvim-hs.nvim-hseReturn or retrive the provider name that the current instance is associated with on the neovim side.anvim-hsRegister an autocmd in the current context. This means that, if you are currently in a stateful plugin, the function will be called in the current thread and has access to the configuration and state of this thread. .6Note that the function you pass must be fully applied.nvim-hs8Create a listening thread for events and add update the " with the corresponding - s (i.e. communication channels).anvim-hs,The event to register to (e.g. BufWritePost)nvim-hs"Fully applied function to registernvim-hsA  if the registration workedACDEFK_`a_KACDEFa`ByteString based API(c) Sebastian Witte Apache-2.0woozletoff@gmail.com experimentalGHCNone27SX_bcdefghjiklmnopqrstuvwxyz{|}~     hjifgdebc     ~}|{zyxwvutsrqponmlk?The component which reads RPC messages from the neovim instance(c) Sebastian Witte Apache-2.0woozletoff@gmail.com experimentalNone"#MX_3nvim-hscThis function will establish a connection to the given socket and read msgpack-rpc events from it.nvim-hs;Sink that delegates the messages depending on their type. >https://github.com/msgpack-rpc/msgpack-rpc/blob/master/spec.mdnvim-hsAct upon the received request or notification. The main difference between the two is that a notification does not generate a reply. The distinction between those two cases is done via the first paramater which is C the function call identifier.3434Utility functions(c) Sebastian Witte Apache-2.0woozletoff@gmail.com experimentalGHCNoneX_5nvim-hs with a monadic predicate.6nvim-hs with a monadic predicate.567567$Wrapper for the actual main function(c) Sebastian Witte Apache-2.0woozletoff@gmail.com experimentalNoneX_8nvim-hsA 8 function receives the Ys of all running threads which have been started by the plugin provider as well as the  with the custom field set to b. These information can be used to properly clean up a session and then do something else. The transition handler is first called after the plugin provider has started.Cnvim-hs*This is essentially the main function for nvim-hs, at least if you want to use  Config.Dyre for the configuration.Dnvim-hsQThis main functions can be used to create a custom executable without using the  Config.Dyre library while still using the nvim-hs$ specific configuration facilities.Envim-hsIGeneric main function. Most arguments are optional or have sane defaults.Envim-hsSee nvim-hs executables --help function or A89:?><;=@ABCDEF@9:?><;=ABC8DEF#API for the neovim plugin provider nvim-hs(c) Sebastian Witte Apache-2.0woozletoff@gmail.com experimentalGHC (due to Template Haskell)NoneX_WHnvim-hs"Default configuration options for nvim-hsY. If you want to keep the default plugins enabled, you can define your config like this: main = C HD { plugins = plugins defaultConfig ++ myPlugins }  XY Z$#"! )*-0/.126789=@>?ABCDE&=>ABCDEFKMNOPop|}~a56CHg&CMNOPHABCDEF=@>?ACB$#"! K|}~a*)op=>678 56DE-20/.19 Testing functions(c) Sebastian Witte Apache-2.0woozletoff@gmail.com experimentalGHCNoneX_ @Invim-hsType synonym for .Knvim-hsRun the given &y action according to the given parameters. The embedded neovim instance is started without a config (i.e. it is passed -u NONE).If you want to run your tests purely from haskell, you have to setup the desired state of neovim with the help of the functions in Neovim.API.String.Knvim-hs-Optional path to a file that should be openednvim-hs7Maximum time (in seconds) that a test is allowed to runnvim-hsRead-only configurationnvim-hs Test caseIJKKIJ3Utilities to debug Neovim and nvim-hs functionality(c) Sebastian Witte Apache-2.0woozletoff@gmail.com experimentalGHCNone$X_%Lnvim-hsSimple datatype storing neccessary information to start, stop and reload a set of plugins. This is passed to most of the functions in this module for storing state even when the ghci-session has been reloaded.Qnvim-hsRun a & function.MThis function connects to the socket pointed to by the environment variable $NVIM_LISTEN_ADDRESS and executes the command. It does not register itself as a real plugin provider, you can simply call neovim-functions from the module Neovim.API.String this way.^Tip: If you run a terminal inside a neovim instance, then this variable is automatically set.Rnvim-hsRun a Neovim' function. debug' = debug () See documentation for Q.Snvim-hszThis function is intended to be run _once_ in a ghci session that to give a REPL based workflow when developing a plugin.6Note that the dyre-based reload mechanisms, i.e. the Neovim.Plugin.ConfigHelper! plugin, is not started this way.To use this in ghci, you simply bind the results to some variables. After each reload of ghci, you have to rebind those variables.Example:  di <- S $  V' di $ vim_call_function "getqflist" []  ( ( []))  :r  di <- S $ DYou can also create a GHCI alias to get rid of most the busy-work: 6 :def! x \_ -> return ":reload\nJust di <- develMain H{ O = [ myDebugPlugin ] }" Tnvim-hs*Quit a previously started plugin provider.Unvim-hs(Restart the development plugin provider.Vnvim-hs(Convenience function to run a stateless & function.Wnvim-hs-Print the global function map to the console. XY Z$#"! )*-0/.126789=@>?ABCDE&,=>ABCDEFKMNOPop|}~a56CHLMNOPQRSTUVW QRLMNOPSTUW,V !"#$%$&$'$()*+,-,.,/,0123456789:;<=;<>;<?;<@;<A;<B;<C;<D;<EFGHFGIFGJFGKFGLFGMFGNFGOFGPFGQFGRFGSTUVTUWTUXTUYTZ[TZ\T]^_`a_`b_`c_`d_`efghfgi1jklmnopqrstuvwxyz{|}~                                                                      !!"#$$%&'(()*++,-./0123456789:;<=>? @ A B C D E F G G H I J K L M N O P Q R   S T U V W X Y Z [ \ ] ^ _ ` a b c d e f ghijk l l m m n o p q r s t uvGwx)$y!z{|}~n      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstun      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~n      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuJ       !"#$%&'()*+,-./0/1/2/3/4/5/6/7/8/9/:/;/</=/>/?/@/ABCBDBEBFBGBHBIBJBKBLBMBNBOBPBQBRBSBTBTBUBVBWBXBYZ[Z\ZJZ]Z^Z_Z`ZaZbZcZdZeZfZghihihjhkhlhmhmhnhohphqhrstsusvswsxsyszs{s{s|s|s}s~s;;;;;;;;;;;;;;;;;;;;;;;;)*)*)*)*4 1     !"#$%&'()*+,-./01623456789::;<=<=<>?@?@?A?B?B?C?D?D?EFGFGFHFIFIFJFKFKFLFMFMFNFOFOFPFQFQFRFSFSFTUVWXY&nvim-hs-2.1.0.2-47XZonBAGjb6QzC4PmrUFP Neovim.API.THNeovim.ClassesNeovim.Plugin.IPC.ClassesNeovim Neovim.ConfigNeovim.ContextNeovim.Compat.MegaparsecNeovim.ExceptionsNeovim.API.Parser Neovim.LogNeovim.Plugin.ClassesNeovim.Context.InternalNeovim.Plugin.InternalNeovim.RPC.ClassesNeovim.RPC.CommonNeovim.RPC.FunctionCallNeovim.RPC.EventHandlerNeovim.API.TextNeovim.API.StringNeovim.Quickfix Neovim.PluginNeovim.API.ByteStringNeovim.RPC.SocketReader Neovim.Util Neovim.Main Neovim.Test Neovim.DebugNeovim.Plugin.IPCbase Data.DataDataData.Typeable.InternalTypeable GHC.GenericsGenericGHC.IntInt8Int16Int32Int64ghc-prim GHC.TypesWordGHC.WordWord8Word16Word32Word64 time-1.8.0.2 Data.Time.Clock.Internal.UTCTimeUTCTimeControl.Monad.IO.ClassliftIO Data.Functorvoid1data-default-class-0.1.2.0-FeIQ5tLoVZBHMSgrT9zptQData.Default.Classdef'hslogger-1.3.0.0-K8IxJaIRi3V65GLQUgv47I System.Log EMERGENCYALERTCRITICALERRORWARNINGNOTICEINFODEBUGPriority(messagepack-0.5.4-3mZR78HZbYJGLFBOHkTSONData.MessagePack ObjectExt ObjectMap ObjectArray ObjectBinary ObjectString ObjectDouble ObjectFloat ObjectBool ObjectInt ObjectUInt ObjectNilObject mtl-2.2.2Control.Monad.State.ClassgetsmodifyputgetControl.Monad.Reader.ClassasksaskControl.Monad.Error.Class throwError*prettyprinter-1.3.0-6qg3eRt5h66FauUzehlm4q"Data.Text.Prettyprint.Doc.Internal<+>Doc prettyListprettyPretty:prettyprinter-ansi-terminal-1.1.1.2-D6WnfwVgrIVLJcLY46LOgG2Data.Text.Prettyprint.Doc.Render.Terminal.InternalputDoc AnsiStyleData.Time.Clock.POSIXgetCurrentTimeParseranyCharNeovimException ErrorMessage ErrorResultexceptionToDoc$fIsStringNeovimException$fExceptionNeovimException$fShowNeovimException NvimObjecttoObjectfromObjectUnsafe fromObject fromObject' Dictionary+: docToObject docFromObject docToText$fNvimObject(,,,,,,,,)$fNvimObject(,,,,,,,)$fNvimObject(,,,,,,)$fNvimObject(,,,,,)$fNvimObject(,,,,)$fNvimObject(,,,)$fNvimObject(,,)$fNvimObject(,)$fNvimObjectObject$fNvimObjectByteString$fNvimObjectText$fNvimObjectMap$fNvimObjectEither$fNvimObjectVector$fNvimObjectMaybe$fNvimObject[]$fNvimObject[]0$fNvimObjectInt$fNvimObjectWord8$fNvimObjectWord16$fNvimObjectWord32$fNvimObjectWord64$fNvimObjectWord$fNvimObjectInt8$fNvimObjectInt16$fNvimObjectInt32$fNvimObjectInt64$fNvimObjectInteger$fNvimObjectDouble$fNvimObjectBool$fNvimObject() NeovimAPI errorTypes customTypes functionsNeovimFunctionname parameterscanFailasync returnType NeovimType SimpleType NestedTypeVoidparseAPI$fShowNeovimType$fEqNeovimType$fShowNeovimFunction$fShowNeovimAPI disableLogger withLoggerHasFunctionName nvimMethod NvimMethodnvimMethodNameAutocmdOptions acmdPattern acmdNested acmdGroupCommandArgumentsbangrangecountregisterRangeSpecification CurrentLine WholeFile RangeCountCommandOptionsgetCommandOptions CommandOptionCmdSync CmdRegisterCmdNargsCmdRangeCmdCountCmdBang SynchronousAsyncSyncFunctionalityDescriptionFunctionCommandAutocmd FunctionNameFmkCommandOptions$fPrettyFunctionName$fNFDataFunctionName$fNvimObjectSynchronous$fIsStringSynchronous$fPrettySynchronous$fNFDataSynchronous$fNvimObjectRangeSpecification$fPrettyRangeSpecification$fNFDataRangeSpecification$fIsStringCommandOption$fPrettyCommandOption$fNFDataCommandOption$fNvimObjectCommandOptions$fPrettyCommandOptions$fNFDataCommandOptions$fNvimObjectCommandArguments$fDefaultCommandArguments$fPrettyCommandArguments$fNFDataCommandArguments$fNvimObjectAutocmdOptions$fDefaultAutocmdOptions$fPrettyAutocmdOptions$fNFDataAutocmdOptions $fPrettyFunctionalityDescription $fNFDataFunctionalityDescription$fPrettyNvimMethod$fNFDataNvimMethod)$fHasFunctionNameFunctionalityDescription$fEqFunctionName$fOrdFunctionName$fShowFunctionName$fReadFunctionName$fGenericFunctionName$fShowSynchronous$fReadSynchronous$fEqSynchronous$fOrdSynchronous$fEnumSynchronous$fGenericSynchronous$fEqRangeSpecification$fOrdRangeSpecification$fShowRangeSpecification$fReadRangeSpecification$fGenericRangeSpecification$fEqCommandOption$fOrdCommandOption$fShowCommandOption$fReadCommandOption$fGenericCommandOption$fEqCommandOptions$fOrdCommandOptions$fShowCommandOptions$fReadCommandOptions$fGenericCommandOptions$fEqCommandArguments$fOrdCommandArguments$fShowCommandArguments$fReadCommandArguments$fGenericCommandArguments$fShowAutocmdOptions$fReadAutocmdOptions$fEqAutocmdOptions$fOrdAutocmdOptions$fGenericAutocmdOptions$fShowFunctionalityDescription$fReadFunctionalityDescription$fEqFunctionalityDescription$fOrdFunctionalityDescription!$fGenericFunctionalityDescription$fEqNvimMethod$fOrdNvimMethod$fShowNvimMethod$fReadNvimMethod$fGenericNvimMethod Notification notMethodnotArgsRequest reqMethodreqIdreqArgs FunctionCallMessage fromMessage SomeMessage writeMessagereadSomeMessage$fPrettyFunctionCall$fMessageFunctionCall$fNFDataFunctionCall$fPrettyRequest$fMessageRequest$fNFDataRequest$fPrettyNotification$fMessageNotification$fNFDataNotification$fGenericFunctionCall $fEqRequest $fOrdRequest $fShowRequest$fGenericRequest$fEqNotification$fOrdNotification$fShowNotification$fGenericNotificationStateTransitionQuitRestartFailure InitSuccessPluginSettingsStatefulSettingsConfig eventQueue transitionTo providerName uniqueCounterglobalFunctionMappluginSettings customConfig FunctionMapFunctionMapEntry FunctionTypeStatefulunNeovimask'asks'exceptionHandlers runNeovimrunNeovimInternalnewUniqueFunctionName mkFunctionMap retypeConfig newConfig$fPrettyFunctionType$fMonadFailNeovim$fMonadUnliftIONeovim$fMonadResourceNeovim$fMonadReaderenvNeovim$fShowStateTransition$fFunctorNeovim$fApplicativeNeovim $fMonadNeovim$fMonadIONeovim$fMonadThrowNeovimerrerrOnInvalidResultrestartquit NeovimPluginPlugin environmentexportsExportedFunctionalityEFgetDescription getFunction wrapPlugin&$fHasFunctionNameExportedFunctionality NeovimConfigplugins logOptionsResponse$fPrettyMessage$fNvimObjectMessage$fMessageMessage$fNFDataMessage $fEqMessage $fOrdMessage $fShowMessage$fGenericMessage SocketTypeStdout Environment UnixSocketTCP RPCConfig recipients nextMessageId newRPCConfig createHandle cleanUpHandleacallacall'scall scallThrowscall' atomically'waitwait'respondrunEventHandler$fFunctorEventHandler$fApplicativeEventHandler$fMonadEventHandler$fMonadIOEventHandler$fMonadReaderEventHandler generateAPIstringListTypeMaptextVectorTypeMapbytestringVectorTypeMapfunction function'commandcommand'autocmd $fEqArgType $fOrdArgType $fShowArgType $fReadArgTypeWindowTabpageBufferNeovimExceptionGenNeovimValidationnvim_buf_line_countbuffer_get_linenvim_buf_attachnvim_buf_detachbuffer_set_linebuffer_del_linebuffer_get_line_slicenvim_buf_get_linesbuffer_set_line_slicenvim_buf_set_linesnvim_buf_get_varnvim_buf_get_changedticknvim_buf_get_keymapnvim_buf_get_commandsnvim_buf_set_varnvim_buf_del_varbuffer_set_varbuffer_del_varnvim_buf_get_optionnvim_buf_set_optionnvim_buf_get_numbernvim_buf_get_namenvim_buf_set_namenvim_buf_is_valid buffer_insertnvim_buf_get_marknvim_buf_add_highlightnvim_buf_clear_highlightnvim_tabpage_list_winsnvim_tabpage_get_varnvim_tabpage_set_varnvim_tabpage_del_vartabpage_set_vartabpage_del_varnvim_tabpage_get_winnvim_tabpage_get_numbernvim_tabpage_is_validnvim_ui_attach ui_attachnvim_ui_detachnvim_ui_try_resizenvim_ui_set_option nvim_commandnvim_get_hl_by_namenvim_get_hl_by_id nvim_feedkeys nvim_inputnvim_replace_termcodesnvim_command_output nvim_evalnvim_execute_luanvim_call_functionnvim_call_dict_function nvim_strwidthnvim_list_runtime_pathsnvim_set_current_dirnvim_get_current_linenvim_set_current_linenvim_del_current_line nvim_get_var nvim_set_var nvim_del_var vim_set_var vim_del_var nvim_get_vvarnvim_get_optionnvim_set_optionnvim_out_writenvim_err_writenvim_err_writelnnvim_list_bufsnvim_get_current_bufnvim_set_current_bufnvim_list_winsnvim_get_current_winnvim_set_current_winnvim_list_tabpagesnvim_get_current_tabpagenvim_set_current_tabpagenvim_subscribenvim_unsubscribenvim_get_color_by_namenvim_get_color_map nvim_get_modenvim_get_keymapnvim_get_commandsnvim_get_api_infonvim_set_client_infonvim_get_chan_infonvim_list_chansnvim_call_atomicnvim_parse_expression nvim_list_uisnvim_get_proc_children nvim_get_procnvim_win_get_bufnvim_win_get_cursornvim_win_set_cursornvim_win_get_heightnvim_win_set_heightnvim_win_get_widthnvim_win_set_widthnvim_win_get_varnvim_win_set_varnvim_win_del_varwindow_set_varwindow_del_varnvim_win_get_optionnvim_win_set_optionnvim_win_get_positionnvim_win_get_tabpagenvim_win_get_numbernvim_win_is_validbuffer_line_countbuffer_get_linesbuffer_set_linesbuffer_get_varbuffer_get_optionbuffer_set_optionbuffer_get_numberbuffer_get_namebuffer_set_namebuffer_is_validbuffer_get_markbuffer_add_highlightbuffer_clear_highlighttabpage_get_windowstabpage_get_vartabpage_get_windowtabpage_is_valid ui_detach ui_try_resize vim_command vim_feedkeys vim_inputvim_replace_termcodesvim_command_outputvim_evalvim_call_function vim_strwidthvim_list_runtime_pathsvim_change_directoryvim_get_current_linevim_set_current_linevim_del_current_line vim_get_var vim_get_vvarvim_get_optionvim_set_option vim_out_write vim_err_writevim_report_errorvim_get_buffersvim_get_current_buffervim_set_current_buffervim_get_windowsvim_get_current_windowvim_set_current_windowvim_get_tabpagesvim_get_current_tabpagevim_set_current_tabpage vim_subscribevim_unsubscribevim_name_to_colorvim_get_color_mapvim_get_api_infowindow_get_bufferwindow_get_cursorwindow_set_cursorwindow_get_heightwindow_set_heightwindow_get_widthwindow_set_widthwindow_get_varwindow_get_optionwindow_set_optionwindow_get_positionwindow_get_tabpagewindow_is_valid$fNvimObjectNeovimExceptionGen$fExceptionNeovimExceptionGen$fNFDataNeovimExceptionGen$fNvimObjectBuffer$fNFDataBuffer$fNvimObjectTabpage$fNFDataTabpage$fNvimObjectWindow$fNFDataWindow$fEqNeovimExceptionGen$fShowNeovimExceptionGen$fGenericNeovimExceptionGen $fEqBuffer $fShowBuffer$fGenericBuffer $fEqTabpage $fShowTabpage$fGenericTabpage $fEqWindow $fShowWindow$fGenericWindowQuickfixActionAppendReplaceNewQuickfixErrorTypeWarningErrorQuickfixListItemQFItem bufOrFile lnumOrPatterncolnrtext errorType SignLocation LineNumber SearchPattern ColumnNumber VisualColumnByteIndexColumnNoColumn setqflistquickfixListItem$fNFDataColumnNumber$fNFDataSignLocation$fNvimObjectQuickfixErrorType$fNFDataQuickfixErrorType$fNvimObjectQuickfixListItem$fNFDataQuickfixListItem$fNvimObjectQuickfixAction$fNFDataQuickfixAction$fEqColumnNumber$fOrdColumnNumber$fShowColumnNumber$fGenericColumnNumber$fEqSignLocation$fOrdSignLocation$fShowSignLocation$fGenericSignLocation$fEqQuickfixErrorType$fOrdQuickfixErrorType$fShowQuickfixErrorType$fReadQuickfixErrorType$fEnumQuickfixErrorType$fBoundedQuickfixErrorType$fGenericQuickfixErrorType$fEqQuickfixListItem$fShowQuickfixListItem$fGenericQuickfixListItem$fEqQuickfixAction$fOrdQuickfixAction$fEnumQuickfixAction$fBoundedQuickfixAction$fShowQuickfixAction$fGenericQuickfixActionstartPluginThreadsregisterPlugin addAutocmdrunSocketReader parseParamswhenMunlessMoneLineErrorMessageTransitionHandlerCommandLineOptionsOpthostPortunixenvVarlogOptslogger optParseroptsneovimrealMainrunPluginProvider standalone$fDefaultCommandLineOptions defaultConfigSecondstestWithEmbeddedNeovimNvimHSDebugInstancethreads neovimConfiginternalConfigdebugdebug' develMain quitDevelMainrestartDevelMain runNeovim'printGlobalFunctionMapGHC.Baseempty<|>Control.Applicativeoptional/parser-combinators-1.0.3-1G8nppuMEiR2Ao7u4R9lsuControl.Applicative.CombinatorsbetweenchoiceeitherPoptionControl.Monad.Combinatorscount'endByendBy1manymanyTillsomesomeTillsepBysepBy1sepEndBy sepEndBy1skipManyskipSome skipCount skipManyTill skipSomeTill'megaparsec-7.0.5-IPmdtynEclE1h1k8efyaNsText.Megaparsec.Charchar'char categoryName charCategory latin1Char asciiChar separatorChar symbolCharpunctuationChar numberCharmarkChar hexDigitChar octDigitChar binDigitChar digitChar printChar alphaNumChar letterChar lowerChar upperChar spaceChar controlCharspace1spacetabeolcrlfnewlineText.Megaparsec.Commonstring'stringText.MegaparsecsetParserState setOffset getOffset getSourcePossetInputgetInputatEndtakeRestregionmatch customFailure unexpectedchunknoneOfoneOf anySingleBut anySinglesatisfysingle runParserT' runParserT runParser' runParser parseTest parseMaybeparseParsecText.Megaparsec.InternalParsecTText.Megaparsec.Class MonadParsectry lookAheadeoflabelfailure fancyFailurehidden notFollowedBy withRecovery observingtokentokens takeWhileP takeWhile1PtakePgetParserStateupdateParserStateText.Megaparsec.ErrorparseErrorTextPrettyparseErrorPrettyerrorBundlePrettyattachSourcePos errorOffset mapParseError ErrorItemTokensLabel EndOfInput ErrorFancy ErrorFailErrorIndentation ErrorCustom ParseError TrivialError FancyErrorParseErrorBundle bundleErrorsbundlePosStateShowErrorComponentshowErrorComponenterrorComponentLenText.Megaparsec.StreamStreamToken tokenToChunk tokensToChunk chunkToTokens chunkLength chunkEmptytake1_takeN_ takeWhile_ showTokens reachOffsetreachOffsetNoLineText.Megaparsec.StateState stateInput stateOffset statePosStatePosState pstateInput pstateOffsetpstateSourcePospstateTabWidthpstateLinePrefixText.Megaparsec.PossourcePosPretty initialPosdefaultTabWidthpos1unPosmkPosPosInvalidPosException SourcePos sourceLine sourceColumn sourceNamedeepseq-1.4.4.0Control.DeepSeqNFDataidrnf2rnf1rwhnf<$!!>force$!!deepseqrnfNFData1liftRnfNFData2liftRnf2 System.IOputStrLnSystem.Log.Logger traploggingremoveAllHandlersupdateGlobalLoggersaveGlobalLogger clearLevelsetLevelgetLevel setHandlers removeHandler addHandlerlogL getRootLogger getLogger emergencyMalertM criticalMerrorMwarningMnoticeMinfoMdebugMlogMrootLoggerNameLogger GHC.MaybeNothingJustTrueFalseStringGHC.MVarMVarInt stm-2.5.0.0Control.Concurrent.STM.TMVarTMVar GHC.Conc.SyncTVarControl.Concurrent.STM.TQueueTQueueIO GHC.ExceptionthrowMonadIO Data.EitherEitherGHC.IO.Handle.TypesHandleunexpectedExceptionGHC.ErrerrorwithIgnoredExceptionSTM atomically EventHandlerArgType text-1.2.3.1Data.Text.InternalTextbytestring-0.10.8.2Data.ByteString.Internal ByteStringTypeMapcreateFunction%createDataTypeWithByteStringComponentexceptionInstancecustomTypeInstanceclassifyArgTypetemplate-haskellLanguage.Haskell.TH.SyntaxTypeMaybefunctionImplementationassertGHC.IO.ExceptionSomeAsyncException IOExceptionGHC.Exception.Type Exception toException fromExceptiondisplayException SomeException&unliftio-0.2.10-82IfxaX1Fq4Bn3WdJneeylUnliftIO.Exception fromEitherM fromEitherIO fromEither impureThrowthrowTostringException throwStringuninterruptibleMask_mask_uninterruptibleMaskmaskisAsyncExceptionisSyncExceptiontoAsyncExceptiontoSyncExceptionthrowIO onException withExceptionfinallybracketOnError_bracketOnErrorbracket_bracket evaluateDeepevaluate catchesDeepcatches pureTryDeeppureTrytryJust tryAnyDeeptryDeeptryAnytryIO handleJust handleAnyDeep handleDeep handleAnyhandleIOhandle catchJust catchAnyDeep catchDeepcatchAnycatchIOcatchHandlerSyncExceptionWrapperAsyncExceptionWrapperStringExceptionMonoidregisterWithNeovimgetProviderNameregisterStatefulFunctionality&resourcet-1.2.2-8peiOzo3mpoFH7RLQ1gvuG%Control.Monad.Trans.Resource.Internal ReleaseKeymessageHandlerSinkhandleRequestOrNotificationwhen Control.MonadunlessThreadId<$ Applicative<*>pure*><*liftA2<>mconcatmemptymappend<$> Alternative WrappedMonad WrapMonad unwrapMonad WrappedArrow WrapArrow unwrapArrowZipList getZipListData.Functor.ConstConstgetConst Data.MonoidFirstgetFirstLastgetLastApgetApData.Semigroup.InternalDualgetDualEndoappEndoAllgetAllAnygetAnySumgetSumProduct getProductAltgetAltliftA3liftA<**>Right