API for looking-up/retrieving Haddock comments?

2012-08-03 Thread Herbert Valerio Riedel
Hello, I've been wondering if there have been attempts to provide some library/API or similiar facility (other than pointing your web-browser to the static Haddock HTML report) for looking up Haddock comments associated with Haskell symbols? As an obvious application: When coding in dynamic langu

Re: API for looking-up/retrieving Haddock comments?

2012-08-03 Thread Simon Hengel
> I've been wondering if there have been attempts to provide some > library/API or similiar facility (other than pointing your web-browser > to the static Haddock HTML report) for looking up Haddock comments > associated with Haskell symbols? > > As an obvious application: When coding in dynamic l

Re: API for looking-up/retrieving Haddock comments?

2012-08-04 Thread Herbert Valerio Riedel
Simon Hengel writes: [...] > I have the following in my .ghci: > > -- hoogle integration > :def hoogle \q -> return $ ":! hoogle --color=true --count=15 \"" ++ q > ++ "\"" > :def doc\q -> return $ ":! hoogle --color=true --info \"" ++ q > ++ "\"" [...] thanks, this al

Re: API for looking-up/retrieving Haddock comments?

2012-08-08 Thread Simon Marlow
On 04/08/2012 08:33, Herbert Valerio Riedel wrote: Simon Hengel writes: [...] I have the following in my .ghci: -- hoogle integration :def hoogle \q -> return $ ":! hoogle --color=true --count=15 \"" ++ q ++ "\"" :def doc\q -> return $ ":! hoogle --color=true --info

Re: API for looking-up/retrieving Haddock comments?

2012-08-08 Thread Simon Hengel
> >I guess both items could be improved upon by extending GHCi to provide > >an additional `:def` facility tailored to Haskell symbols allowing to > >pass more meta-information (such as package and module information) into > >the resulting command string... would something like that have any > >cha