-
Notifications
You must be signed in to change notification settings - Fork 208
Documentation outside projects #1738
Comments
I get this in the coc docs window do you? sum :: Any Integer -> Integer
sum :: forall (t :: * -> *) a. (Foldable t, Num a) => t a -> a
The `sum` function computes the sum of the numbers of a structure.
[Documentation](file:///home/user/.ghcup/ghc/8.8.3/share/doc/ghc-8.8.3/html/libraries/base-4.13.0.0/Data-Foldable.html#v:sum)
[Source](file:///home/user/.ghcup/ghc/8.8.3/share/doc/ghc-8.8.3/html/libraries/base-4.13.0.0/src/Data-Foldable.html#sum)
base Data.Foldable |
It works for me too with Coc. Ask for Coc specific help on https://gitter.im/neoclide/coc.nvim This is not the place for that. |
@lyh970817 You may not have generated a hoogle database. Check the hie readme for instructions for cabal or stack |
Thanks. I've realized that too. I did have a hoogle database but I've tried to regenerate it and set
Is it related to the last two lines? |
Most likely, do you get type error diagnostics? |
I'm using stack but have not created a project and are not using a
By type diagnostics do you mean like when I try to Sorry I'm not sure what multi component is... But I have not applied any config so everything should be the default? |
Opening setup.hs is not supported, so that is expected |
Thanks! I can see the documentation now if I go into |
I assume so, but currently it is only supported in projects. |
I see. Thanks so much! |
The hover documentation doesn't seem to work on coc.vim (tested with
call CocAction('doHover')
when cursor is on a function likesum
). Everything else is working fine.call CocAction('doHover')
also works fine for other languages.The text was updated successfully, but these errors were encountered: