PageRenderTime 72ms CodeModel.GetById 32ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/DDG/Spice/Hayoo.pm

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