IO()"..." /> IO()"..." /> IO()"..."/>

Eclipse FP Cannot Get Documentation to Appear

78 views Asked by At

In the website here, it shows pictures of EclipseFP plugin with pop-up documentation.

No documentation

^ All I get is the type signature - "putChar :: Char -> IO()".

I have all the helper executables other than the ones for web frameworks and SourceGraph and UUAGC. Sourcegraph not installing is something else.

Anyway, I'm not getting pop up documentation for any of the standard library functions or my own user-defined functions. Also, I installed Hoogle...

Hoogle

and after installation I re-opened EclipseFP and it made no difference - no documentation for any function.

1

There are 1 answers

1
Michael Lafayette On

I got it working!

enter image description here

After cabal installing every Helper executable (except for Web dev and SourceGraph) under "Window > Preferences > Haskell > Helper executables", I could get documentation on my own methods if they were written like this...

--
-- | Documentation appears in Haskell!!!
--
function signature
function

Note that if you try to write documentation like this, it doesn't render properly...

--
-- | Documentation
-- | a is the Int being returned
returnInt :: Int -> Int
returnInt(a) = a

^ Instead, it just prints "a is the Int being returned"