ndmitchell / hoogle

Haskell API search engine
http://hoogle.haskell.org/
Other
738 stars 134 forks source link

json output from the command line app #272

Closed meck closed 5 years ago

meck commented 5 years ago

I was tinkering about (see #271) and wanted to use the library for querying local databases, but since its strict about versions, it seems a bit of a hassle to use it that way. It would be nice to have a --format=json or parameter similar to use a locally installed cli version of Hoogle, like the web version?

ndmitchell commented 5 years ago

That seems a plausible way to go for version interoperability, although I'd be tempted to just require a specific version of the Hoogle library and call the generator as needed - the format doesn't change that often and tightly coupling is usually less effort. However, the feature seems reasonable, so up to you and patch welcome.

meck commented 5 years ago

I went with keeping a separate database, all good. Closing this