Hayoo and Hoogle (beginner question)

Hello Hopefully Helpful Haskell Community! (I really wanted that to be alliteration... couldn't come up with an h word for community) I've just started learning Haskell (working my way through "Real World Haskell" and really liking it)! I have started to appreciate that there are a lot of Haskell libraries I will want to search and access quite regularly when I work on Haskell projects, so I had the following questions: 1. Hoogle and Hayoo: I'm a bit confused by the difference here. From initial impressions it seems that Hayoo is linked to Hackage, but Hoogle is not? And it seems that Hayoo is, well, "Similar to Hoogle, but with less focus on type search." Should I check both of these when I want a library, or choose one and go with it...? Or is it indeed better to search Hayoo when I'm thinking of a named library and Hoogle when I think I know the type signature for just the function I need? 2. I much prefer a command line search interface to a browser, I see Hoogle offers such a tool, does Hayoo? P.S. If these questions are in the wrong place, or if they are already answered in detail somewhere that my Googling didn't find please feel free to paste a link and tell me to search better next time! -- View this message in context: http://old.nabble.com/Hayoo-and-Hoogle-%28beginner-question%29-tp26669924p26... Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.

'Hood?
On Mon, Dec 7, 2009 at 2:43 PM, Colin Adams
2009/12/7 drostin77
: Hello Hopefully Helpful Haskell Community!
(I really wanted that to be alliteration... couldn't come up with an h word for community)
House? _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Lyndon Maydwell
On Mon, Dec 7, 2009 at 2:43 PM, Colin Adams>
wrote:
2009/12/7 drostin77
:
Hello Hopefully Helpful Haskell Community!
(I really wanted that to be alliteration... couldn't come up with an h word for community)
House?
'Hood?
Horde? And of course, haskell.org is the Hopefully Helpful Haskell Hoard. -k -- If I haven't seen further, it is by standing in the footprints of giants

I take 'Hood. Er... any responses to my questions? Ketil Malde-5 wrote:
Lyndon Maydwell
writes: On Mon, Dec 7, 2009 at 2:43 PM, Colin Adams>
wrote: 2009/12/7 drostin77
: Hello Hopefully Helpful Haskell Community!
(I really wanted that to be alliteration... couldn't come up with an h word for community)
House?
'Hood?
Horde? And of course, haskell.org is the Hopefully Helpful Haskell Hoard.
-k -- If I haven't seen further, it is by standing in the footprints of giants _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- View this message in context: http://old.nabble.com/Hayoo-and-Hoogle-%28beginner-question%29-tp26669924p26... Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.

I had heard that Hoogle actually compiled any type-signatures, where
as Hayoo just did a text comparison.
I'm not actually sure if this is true or not though.
If it is, it would mean that "[q] -> [r] -> [(q,r)]" would return zip
in Hoogle, but not Hayoo.
Am I right about this?
On Mon, Dec 7, 2009 at 4:52 PM, drostin77
I take 'Hood. Er... any responses to my questions?
Ketil Malde-5 wrote:
Lyndon Maydwell
writes: On Mon, Dec 7, 2009 at 2:43 PM, Colin Adams>
wrote: 2009/12/7 drostin77
: Hello Hopefully Helpful Haskell Community!
(I really wanted that to be alliteration... couldn't come up with an h word for community)
House?
'Hood?
Horde? And of course, haskell.org is the Hopefully Helpful Haskell Hoard.
-k -- If I haven't seen further, it is by standing in the footprints of giants _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- View this message in context: http://old.nabble.com/Hayoo-and-Hoogle-%28beginner-question%29-tp26669924p26... Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

On Mon, Dec 7, 2009 at 10:24 AM, Lyndon Maydwell
I had heard that Hoogle actually compiled any type-signatures, where as Hayoo just did a text comparison.
I'm not actually sure if this is true or not though.
If it is, it would mean that "[q] -> [r] -> [(q,r)]" would return zip in Hoogle, but not Hayoo.
Am I right about this?
You are right: http://haskell.org/hoogle/?hoogle=[q]%20-%3E%20[r]%20-%3E%20[%28q%2Cr%29] But Hayoo searches all of hackage while Hoogle also searches a lot, but not all. If I'm searching for a function that is probably in base or containers, I use hoogle. Otherwise I use hayoo. In short: They are both very useful.

On Monday 07 December 2009 10:24:37 Lyndon Maydwell wrote:
I had heard that Hoogle actually compiled any type-signatures, where as Hayoo just did a text comparison.
I'm not actually sure if this is true or not though.
If it is, it would mean that "[q] -> [r] -> [(q,r)]" would return zip in Hoogle, but not Hayoo.
Am I right about this?
Yes, we (in Hayoo!) only do text based stuff. Is is possbile to search for signatures, but no generalization etc. is done at all. This is very primitive in Hayoo! and I really suggest using Hoogle for type searches. As for the question about a command line interface: There is nothing like that for Hayoo!, although one could easily hack something together, just using some wget-grep-cut-magic. I also have some code lying around for primitive command line searches using an offline Hayoo! index. Maybe I could get that into proper shape, given enough public demand ;) Cheers, Timo

Hi,
It probably helps to know some of the history, as it explains a lot of
what you see today. Hoogle was written first (about 5 years ago now),
before there was hackage (so it doesn't search hackage), and with an
emphasis on type search (as that's cool). Hayoo came a lot later
(about 2 years ago at most). Hoogle will be gaining the ability to do
a full search of Hackage - I'm just waiting to get some bits sorted
out first. There isn't really a technical obstacle, I've just not had
the time to finish the implementation.
Use whichever you choose, but if you use Hayoo for some reason other
than Hoogle not searching all packages, I'd love to know.
Thanks, Neil
2009/12/7 drostin77
Hello Hopefully Helpful Haskell Community!
(I really wanted that to be alliteration... couldn't come up with an h word for community)
I've just started learning Haskell (working my way through "Real World Haskell" and really liking it)! I have started to appreciate that there are a lot of Haskell libraries I will want to search and access quite regularly when I work on Haskell projects, so I had the following questions:
1. Hoogle and Hayoo: I'm a bit confused by the difference here. From initial impressions it seems that Hayoo is linked to Hackage, but Hoogle is not? And it seems that Hayoo is, well, "Similar to Hoogle, but with less focus on type search." Should I check both of these when I want a library, or choose one and go with it...? Or is it indeed better to search Hayoo when I'm thinking of a named library and Hoogle when I think I know the type signature for just the function I need?
2. I much prefer a command line search interface to a browser, I see Hoogle offers such a tool, does Hayoo?
P.S. If these questions are in the wrong place, or if they are already answered in detail somewhere that my Googling didn't find please feel free to paste a link and tell me to search better next time! -- View this message in context: http://old.nabble.com/Hayoo-and-Hoogle-%28beginner-question%29-tp26669924p26... Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Neil Mitchell
but if you use Hayoo for some reason other than Hoogle not searching all packages, I'd love to know.
Isn't it obvious? We all use Hayoo for the Web 2.0 interface! :p /me is just kidding -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com

Thanks for all the answers, in particular the history (quoted) was informative! So for now the answer is indeed probably to use both, starting with Hoogle if I am searching by type. And if you do find that old hayoo command line search script yes please :P (esp the offline one, I do so much studying on airplanes that even if I couldn't download the package knowing I didn't need to build it myself would be great)! If I get irked enough at the browser to hack together a wget/cut/grep (or-dare-i-say-ruby) script to search hayoo from bash I will post it somewhere haskelly! Neil Mitchell wrote:
Hi,
It probably helps to know some of the history, as it explains a lot of what you see today. Hoogle was written first (about 5 years ago now), before there was hackage (so it doesn't search hackage), and with an emphasis on type search (as that's cool). Hayoo came a lot later (about 2 years ago at most). Hoogle will be gaining the ability to do a full search of Hackage - I'm just waiting to get some bits sorted out first. There isn't really a technical obstacle, I've just not had the time to finish the implementation.
Use whichever you choose, but if you use Hayoo for some reason other than Hoogle not searching all packages, I'd love to know.
Thanks, Neil
2009/12/7 drostin77
: Hello Hopefully Helpful Haskell Community!
(I really wanted that to be alliteration... couldn't come up with an h word for community)
I've just started learning Haskell (working my way through "Real World Haskell" and really liking it)! I have started to appreciate that there are a lot of Haskell libraries I will want to search and access quite regularly when I work on Haskell projects, so I had the following questions:
1. Hoogle and Hayoo: I'm a bit confused by the difference here. From initial impressions it seems that Hayoo is linked to Hackage, but Hoogle is not? And it seems that Hayoo is, well, "Similar to Hoogle, but with less focus on type search." Should I check both of these when I want a library, or choose one and go with it...? Or is it indeed better to search Hayoo when I'm thinking of a named library and Hoogle when I think I know the type signature for just the function I need?
2. I much prefer a command line search interface to a browser, I see Hoogle offers such a tool, does Hayoo?
P.S. If these questions are in the wrong place, or if they are already answered in detail somewhere that my Googling didn't find please feel free to paste a link and tell me to search better next time! -- View this message in context: http://old.nabble.com/Hayoo-and-Hoogle-%28beginner-question%29-tp26669924p26... Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- View this message in context: http://old.nabble.com/Hayoo-and-Hoogle-%28beginner-question%29-tp26669924p26... Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.
participants (8)
-
Colin Adams
-
drostin77
-
Ivan Lazar Miljenovic
-
Ketil Malde
-
Lyndon Maydwell
-
Neil Mitchell
-
Roel van Dijk
-
Timo B. Hübel