I installed hoogle, using stack install hoogle
. Now I can search for functions using a command like this from stack ghci
:
:!hoogle --count=15 "[a] -> a"
I am in the root directory of my Yesod project - the main reason I installed it was to get help with Yesod functions - but when I try to find a function from Yesod like addHeader
, it doesn't recognize a type defined on Yesod:
:t addHeader
addHeader :: MonadHandler m => Text -> Text -> m ()
:!hoogle --count=15 "MonadHandler m => Text -> Text -> m ()"
Warning: Unknown class MonadHandler
.
.
.
How can I setup hoogle to work beautifully with Yesod and also this very project I am working on, so that hoogle would bring my own functions and Yesod ones?