/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
- package DDG::Spice::Hayoo;
- use DDG::Spice;
- primary_example_queries "hayoo Prelude.map";
- description "Search Haskell APIs";
- name "Hayoo";
- code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Hayoo.pm";
- icon_url "/i/hackage.haskell.org.ico";
- topics "programming", "sysadmin";
- category "programming";
- attribution github => ['https://github.com/headprogrammingczar','headprogrammingczar'];
- triggers start => "hayoo", "haskell api", "haskell";
- spice to => 'http://holumbus.fh-wedel.de/hayoo/hayoo.json?query=$1';
- spice wrap_jsonp_callback => 1;
- spice proxy_cache_valid => "200 1d";
- handle remainder => sub {
- return $_ if $_;
- return;
- };
- 1;