3 ms·
FYI: Hoogle dies on :: and `, and gives a wrong result for =>. Please note that this is just a simple problem, with a solution of printing out the right refere
by pnathan 15y ago
FYI: Hoogle dies on :: and `, and gives a wrong result for =>.
Please note that this is just a simple problem, with a solution of printing out the right reference cheatsheet.
The real difficulty comes (IMO) when looking at piles of symbols in code and trying to determine what kind of meaning is coming from the symbol soup (C++ and Perl are notorious for this too).
Quite often (usually?), of course, public Haskell is written in a very clear and readable style. That's a major reason to use Haskell - to write in a readable language.
- teaspoon 15y agoYou won't find :: and => in Hoogle because they're keywords, not functions. For keywords, see the the wiki page that gtani posted: http://haskell.org/haskellwiki/Keywords http://haskell.org/haskellwiki/Keywords I recommend reading Learn You a Haskell instead; the keywords were second nature to me by the time I finished. I agree that there's too much "symbol soup" Haskell out there that uses infix functions excessively. Even if you recognize all of the functions, you still need to have their precedences memorized to decode the soup.