lukerandall / haskellmode-vim

An unpacked copy of the haskellmode vimball. Ping me if it needs updating.
http://projects.haskell.org/haskellmode-vim/
BSD 3-Clause "New" or "Revised" License
135 stars 21 forks source link

Haddock docs not detected on Windows #20

Open finishingmove opened 9 years ago

finishingmove commented 9 years ago

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.

Chratho commented 9 years ago

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"
finishingmove commented 9 years ago

Oh my... That indeed worked!

Thanks @Chratho

finishingmove commented 9 years ago

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 :)