[Haskell-cafe] Hoogle is great but ...

Eugene Kirpichov ekirpichov at gmail.com
Sun Oct 25 05:55:38 EDT 2009


This is not a job for Hoogle, it's for library documenters.

However, that might be a good suggestion for haddock: introduce a
"input/output examples" haddock field and present it in hoogle
results. That, however, will only be useful if many library authors
use this feature.

2009/10/25 zaxis <z_axis at 163.com>:
>
> http://www.haskell.org/hoogle/ is VERY great for haskeller. However, i feel
> hoogle should be improved by providing more examples as :
>
> isInfixOf :: Eq a => [a] -> [a] -> Bool
>
> The isInfixOf function takes two lists and returns True iff the first list
> is contained, wholly and intact, anywhere within the second.
>
> Example:
>
> isInfixOf "Haskell" "I really like Haskell." -> True
> isInfixOf "Ial" "I really like Haskell." -> False
>
> The Example code will be helpful for programmer to understand its
> definition.
>
> Sincerely!
> --
> View this message in context: http://www.nabble.com/Hoogle-is-great-but-...-tp26046410p26046410.html
> Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>



-- 
Eugene Kirpichov
Web IR developer, market.yandex.ru


More information about the Haskell-Cafe mailing list