문제

I have hoogle installed on my box and I can use hoogle from within ghci. Is there a way to ask hoogle to search only within certain modules and packages?

I tried

:hoogle +System.Directory directory

but I get a lot of results that are not found in the System.Directory.

도움이 되었습니까?

해결책

How is your :hoogle command is defined in your .ghci file?

I have:

:def hoogle \x -> return $ ":!hoogle \"" ++ x ++ "\""

and your example works for me.

To debug the problem further, try (note the !):

:!hoogle +System.Directory directory

This directly executes the hoogle function on your system - so if that doesn't work it's a problem with your hoogle executable.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top