nvim-hs 1.0.0.1 → 1.0.0.2
raw patch · 5 files changed
+15/−2 lines, 5 filesbinary-addedPVP: minor bump suggested
API additions: PVP suggests at least a minor version bump
API changes (from Hackage documentation)
+ Neovim.API.String: nvim_buf_attach :: Buffer -> Bool -> Map Object Object -> forall env. Neovim env (Either NeovimException Bool)
+ Neovim.API.String: nvim_buf_attach' :: Buffer -> Bool -> Map Object Object -> forall env. Neovim env Bool
+ Neovim.API.String: nvim_buf_detach :: Buffer -> forall env. Neovim env (Either NeovimException Bool)
+ Neovim.API.String: nvim_buf_detach' :: Buffer -> forall env. Neovim env Bool
+ Neovim.API.String: nvim_buf_get_commands :: Buffer -> Map Object Object -> forall env. Neovim env (Either NeovimException (Map Object Object))
+ Neovim.API.String: nvim_buf_get_commands' :: Buffer -> Map Object Object -> forall env. Neovim env (Map Object Object)
+ Neovim.API.String: nvim_buf_get_keymap :: Buffer -> String -> forall env. Neovim env (Either NeovimException [Map Object Object])
+ Neovim.API.String: nvim_buf_get_keymap' :: Buffer -> String -> forall env. Neovim env [Map Object Object]
+ Neovim.API.String: nvim_call_dict_function :: Object -> String -> [Object] -> forall env. Neovim env (Either NeovimException Object)
+ Neovim.API.String: nvim_call_dict_function' :: Object -> String -> [Object] -> forall env. Neovim env Object
+ Neovim.API.String: nvim_execute_lua :: String -> [Object] -> forall env. Neovim env (Either NeovimException Object)
+ Neovim.API.String: nvim_execute_lua' :: String -> [Object] -> forall env. Neovim env Object
+ Neovim.API.String: nvim_get_chan_info :: Int64 -> forall env. Neovim env (Either NeovimException (Map Object Object))
+ Neovim.API.String: nvim_get_chan_info' :: Int64 -> forall env. Neovim env (Map Object Object)
+ Neovim.API.String: nvim_get_commands :: Map Object Object -> forall env. Neovim env (Either NeovimException (Map Object Object))
+ Neovim.API.String: nvim_get_commands' :: Map Object Object -> forall env. Neovim env (Map Object Object)
+ Neovim.API.String: nvim_get_hl_by_id :: Int64 -> Bool -> forall env. Neovim env (Either NeovimException (Map Object Object))
+ Neovim.API.String: nvim_get_hl_by_id' :: Int64 -> Bool -> forall env. Neovim env (Map Object Object)
+ Neovim.API.String: nvim_get_hl_by_name :: String -> Bool -> forall env. Neovim env (Either NeovimException (Map Object Object))
+ Neovim.API.String: nvim_get_hl_by_name' :: String -> Bool -> forall env. Neovim env (Map Object Object)
+ Neovim.API.String: nvim_get_keymap :: String -> forall env. Neovim env (Either NeovimException [Map Object Object])
+ Neovim.API.String: nvim_get_keymap' :: String -> forall env. Neovim env [Map Object Object]
+ Neovim.API.String: nvim_get_proc :: Int64 -> forall env. Neovim env (Either NeovimException Object)
+ Neovim.API.String: nvim_get_proc' :: Int64 -> forall env. Neovim env Object
+ Neovim.API.String: nvim_get_proc_children :: Int64 -> forall env. Neovim env (Either NeovimException [Object])
+ Neovim.API.String: nvim_get_proc_children' :: Int64 -> forall env. Neovim env [Object]
+ Neovim.API.String: nvim_list_chans :: forall env. Neovim env (Either NeovimException [Object])
+ Neovim.API.String: nvim_list_chans' :: forall env. Neovim env [Object]
+ Neovim.API.String: nvim_list_uis :: forall env. Neovim env (Either NeovimException [Object])
+ Neovim.API.String: nvim_list_uis' :: forall env. Neovim env [Object]
+ Neovim.API.String: nvim_parse_expression :: String -> String -> Bool -> forall env. Neovim env (Either NeovimException (Map Object Object))
+ Neovim.API.String: nvim_parse_expression' :: String -> String -> Bool -> forall env. Neovim env (Map Object Object)
+ Neovim.API.String: nvim_set_client_info :: String -> Map Object Object -> String -> Map Object Object -> Map Object Object -> forall env. Neovim env (Either NeovimException ())
+ Neovim.API.String: nvim_set_client_info' :: String -> Map Object Object -> String -> Map Object Object -> Map Object Object -> forall env. Neovim env ()
Files
- CHANGELOG.md +6/−0
- api binary
- apiblobs/0.3.0.msgpack binary
- library/Neovim/API/TH.hs +7/−1
- nvim-hs.cabal +2/−1
CHANGELOG.md view
@@ -1,3 +1,9 @@+# 1.0.0.2++* With the api of neovim 0.3.0, a function was exposed that had a reserved+ haskell keyword as a parameter name. The code generation did not sanitize+ this. This bugfix releases resolves this.+ # 1.0.0.0 * Each plugin (type) now defines an environment which is similar to how
api view
binary file changed (16949 → 20951 bytes)
+ apiblobs/0.3.0.msgpack view
binary file changed (absent → 20951 bytes)
library/Neovim/API/TH.hs view
@@ -168,9 +168,15 @@ . apiTypeToHaskellType typeMap $ returnType nf in mapM createSig [ withException', id ] + -- prefix with arg0_, arg1_ etc. to prevent generated code from crashing due+ -- to keywords being used.+ -- see https://github.com/neovimhaskell/nvim-hs/issues/65+ let prefixWithNumber i n = "arg" ++ show i ++ "_" ++ n+ applyPrefixWithNumber = zipWith (\i (t,n) -> (t, prefixWithNumber i n))+ [0 :: Int ..] . parameters vars <- mapM (\(t,n) -> (,) <$> apiTypeToHaskellType typeMap t <*> newName n)- $ parameters nf+ $ applyPrefixWithNumber nf let impl functionName callFn retType = [ sigD functionName . return
nvim-hs.cabal view
@@ -1,5 +1,5 @@ name: nvim-hs-version: 1.0.0.1+version: 1.0.0.2 synopsis: Haskell plugin backend for neovim description: This package provides a plugin provider for neovim. It allows you to write@@ -40,6 +40,7 @@ , test-files/hello , apiblobs/0.1.7.msgpack , apiblobs/0.2.0.msgpack+ , apiblobs/0.3.0.msgpack , api extra-doc-files: CHANGELOG.md