diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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
diff --git a/api b/api
Binary files a/api and b/api differ
diff --git a/apiblobs/0.3.0.msgpack b/apiblobs/0.3.0.msgpack
new file mode 100644
Binary files /dev/null and b/apiblobs/0.3.0.msgpack differ
diff --git a/library/Neovim/API/TH.hs b/library/Neovim/API/TH.hs
--- a/library/Neovim/API/TH.hs
+++ b/library/Neovim/API/TH.hs
@@ -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
diff --git a/nvim-hs.cabal b/nvim-hs.cabal
--- a/nvim-hs.cabal
+++ b/nvim-hs.cabal
@@ -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
