/lib/DDG/Spice/Hayoo.pm

https://github.com/pardocz/zeroclickinfo-spice · Perl · 26 lines · 19 code · 7 blank · 0 comment · 1 complexity · 98d5b4dae9e18b933639d97dfdf2a658 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", "haskell";
  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;