neovimhaskell / nvim-hs

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

Remove StateT from Neovim #56

Closed saep closed 6 years ago

saep commented 7 years ago

After reading https://www.fpcomplete.com/blog/2017/06/readert-design-pattern and https://www.fpcomplete.com/blog/2017/06/tale-of-two-brackets, I think it might be worth simplifying the basic stack used. One can always put something like an MVar inside the reader environment and use runStateT when necessary.

saep commented 7 years ago

I may be able to remove ResourceT as well and actually fix freeing some autocmds with this simplification.

saep commented 6 years ago

This is almost done in master.