haskellmode-vim
haskellmode-vim copied to clipboard
Haddock docs not detected on Windows
Hi.
Today, I tried setting up haskellmode-vim on Windows, but it keeps throwing an error
Error detected while processing C:\Users\me\.vim\bundle\haskellmode-vim\ftplugin\haskell_doc.vim:
line 111:
haskell_doc.vim can't find locaton of html documentation (set g:haddock_docdir).
I added this to my .vimrc:
let g:haddock_docdir="C:\Program Files\Haskell Platform\2014.2.0.0\doc\html"
and, although it's the correct path to the haddock documentation, I still keep getting the error.
On Ubuntu, the docs were picked up automatically.
Let me know if you have any questions.
After playing around with haskellmode-vim on Windows a bit today: I made the experience that backslashes need to be escpaded. Try:
let g:haddock_docdir="C:\\Program Files\\Haskell Platform\\2014.2.0.0\\doc\\html"
Oh my... That indeed worked!
Thanks @Chratho
Actually, just discovered that it also seems to work using just the unix path separators:
let g:haddock_docdir="C:/Program Files/Haskell Platform/2014.2.0.0/doc/html"
How I missed that, I don't know :)