neovimhaskell / nvim-hs

Neovim API for Haskell plugins as well as the plugin provider
Other
267 stars 18 forks source link

[RFC] Add rudementary function generation code #19

Closed saep closed 9 years ago

saep commented 9 years ago

I started to write some Template Haskell, so that one is able to write (simple) stateless functions in a normal Haskell manner. This addresses the points made in #12 which should be discussed further.

The drawbacks I have found are the following:

saep commented 9 years ago

The functions in remote#define require some additional parameters. Most notably sync. We should either create async and sync variants for the generator functions or supply them with an additional parameter. I am in favour of the former because it seems to be more user friendly and having four functions for creating an exported function is still manageable, especially if the documentation is structured properly.

saep commented 9 years ago

I'll merge this if these changes work with the Template Haskell stuff which I'll test this evening. I do not see any real issues with these changes yet.