PageRenderTime 63ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/lib/DDG/Spice/Hayoo.pm

https://github.com/robertbrook/zeroclickinfo-spice
Perl | 26 lines | 19 code | 7 blank | 0 comment | 1 complexity | 3fcdc31bf2f234369d8155485f79bd0b MD5 | raw file
  1. package DDG::Spice::Hayoo;
  2. use DDG::Spice;
  3. primary_example_queries "hayoo Prelude.map";
  4. description "Search Haskell APIs";
  5. name "Hayoo";
  6. code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Hayoo.pm";
  7. icon_url "/i/hackage.haskell.org.ico";
  8. topics "programming", "sysadmin";
  9. category "programming";
  10. attribution github => ['https://github.com/headprogrammingczar','headprogrammingczar'];
  11. triggers start => "hayoo", "haskell api";
  12. spice to => 'http://holumbus.fh-wedel.de/hayoo/hayoo.json?query=$1';
  13. spice wrap_jsonp_callback => 1;
  14. spice proxy_cache_valid => "200 1d";
  15. handle remainder => sub {
  16. return $_ if $_;
  17. return;
  18. };
  19. 1;