Closed saep closed 7 years ago
It turns out to be a lot of work and with the rise of the haskell-ide-engine, it might not be worth the effort. If somebody wants to take a stab at this, I would implement it roughly in these steps:
StateT
transformer and make everything compileNeovim.Context.Internal.Config
ReaderT
wrapper in something specific to nvim-hs, so that we don't steal that instance.A simple HasNvim
typeclass is probably better.
I'm currently exploring the possibility of defining the
Neovim
context as a monad transformer. Apart from being slightly more complicated to initialize, this approach seems to be way more flexible than the current one. I found it quite hard to start a ghc-mod context with the current model and therefore I am exploring this design space before commiting to a (somewhat) final API design for version 0.1.