Questions tagged [hoogle]

Hoogle is a Haskell API search engine.

Hoogle is a Haskell API search engine, which allows you to search many standard Haskell libraries by either function name, or by approximate type signature.

Taken from http://www.haskell.org/hoogle/

36 questions
3
votes
0 answers

Function lookup on Hoogle CLI doesn't show function descriptions

When I search for nub on haskell.org/hoogle, it returns a list of matching functions along with helpful descriptions, such as "The nub function removes duplicate elements from a list". Is there any way to get this functionality from the Hoogle CLI?
Zach
  • 998
  • 1
  • 9
  • 26
3
votes
1 answer

How do you search across library versions in Haskell?

How do you find out which version(s) of a particular library includes a given definition? In my case, I noticed that gloss fails to install with the GLFW backend... Graphics\Gloss\Internals\Interface\Backend\GLFW.hs:12:45: error: Module…
SwiftsNamesake
  • 1,540
  • 2
  • 11
  • 25
3
votes
0 answers

Hoogle Git repository

Is there a way to use type signature searches on not just the current working set, but the entire history of a project? The purpose would be to find and possibly recycle Haskell functions that were previously written and tested, but removed due to…
E Bro
  • 33
  • 5
3
votes
1 answer

Hoogle and yesod - how to easily find functions in non-default packages

I installed hoogle, using stack install hoogle. Now I can search for functions using a command like this from stack ghci: :!hoogle --count=15 "[a] -> a" I am in the root directory of my Yesod project - the main reason I installed it was to get help…
FtheBuilder
  • 1,410
  • 12
  • 19
3
votes
1 answer

Can't generate hoogle data because wget certificate expired?

I'm trying to run 'hoogle data', and I get this as the output : Downloading downloads/base.txt # base.txt (for downloads/base.txt) ERROR: cannot verify www.haskell.org's certificate, issued by '/C=BE/O=GlobalSign nv-sa/CN=GlobalSign Organization…
Marcus Buffett
  • 1,289
  • 1
  • 14
  • 32
3
votes
1 answer

How can I organize local haskell package documents?

I have many haskell packages and I have enabled some flag to allow them generate haddock documents. Now these documents are under directories like /usr/share/doc/{package-name}-{version}/html/. Is there a tool to organize them? I want something like…
Javran
  • 3,394
  • 2
  • 23
  • 40
2
votes
1 answer

Why doesn't the type f (f b c) (f (f a b) (f a c)) match (.)?

I have just formulated the type of (.), generalized, as far as I can tell, however, upon typing it into Hoogle, I received no results. I'd have expected (.) :: (->) ((->) b c) ((->) ((->) a b) ((->) a c)) ~ (b -> c) -> ((a -> b) -> (a -> c)) …
schuelermine
  • 1,958
  • 2
  • 17
  • 31
2
votes
1 answer

How do I limit my search to a particular package or module with Hoogle?

I remember reading that you can limit your search query to a particular module or package. But I can't seem to find anything on Google.
Chris Stryczynski
  • 30,145
  • 48
  • 175
  • 286
1
vote
2 answers

Is there a non cyclic definition for `liftA2` and `<*>` on stackage.org

On stackage.org, the following cyclic declaration exists for liftA2 and <*> for the Applicative typeclass. (<*>) = liftA2 id liftA2 f x y = f <$> x <*> y Is a non-cyclic declaration available for liftA2 or <*> on the site. Are such…
George
  • 2,451
  • 27
  • 37
1
vote
1 answer

from hoogle, through stack, to import

I am trying to understand the tools to find and install packages with useful functions in Haskell Say I do a query in hoogle and find an interesting function: https://hoogle.haskell.org/?hoogle=a+-%3E+%5Ba%5D+-%3E+Int&scope=set%3Astackage In the…
josinalvo
  • 1,366
  • 13
  • 26
1
vote
1 answer

Command `hoogle data` fails to download base.txt

This is the output of hoogle data: Downloading downloads/platform.cabal # platform.cabal (for downloads/platform.cabal) 2015-02-10 19:44:01 URL:http://code.galois.com/darcs/haskell-platform/haskell-platform.cabal [3334/3334] ->…
rubik
  • 8,814
  • 9
  • 58
  • 88
1
vote
1 answer

hoogle 4.2.34 install error on Mac w "Couldn't match expected type ‘CompilerId’"

Warning: new Haskell user here I'm trying to install the CLI version of Hoogle on Haskell Platform 2014.2.0.0 for Mac OS X Maverick, 64 bit. I have installed cabal 1.21.0.0 with ghcjs support and ghc 7.8.3. The following is the output from running…
KinGBin
  • 105
  • 8
1
vote
1 answer

Cabal install hoogle not working

I need to configure eclipsefp and install hoogle and scion-browser for setting up a haskell project using mysql. I tried to install hoogle and scion-browser from Eclipse -> Preference -> Helper executable, and also from the terminal, however…
Steffi
  • 867
  • 5
  • 14
  • 29
1
vote
2 answers

How to build 'missing' complex functions in Haskell

How should I aprroach situations when I know type of needed function but it is not defined yet? I suspect function I'm looking for is easily composable from others, but I don't know where to start looking. Prelude> :hoogle…
Rumca
  • 1,809
  • 12
  • 17
1
vote
1 answer

Why Hoogle is not working under EclipseFP on my machine?

Environment: Windows 8 x64 Behind HTTP proxy Eclipse Version: Kepler Service Release 1 Build id: 20130919-0819 EclipseFP 2.5.4 correctly installed and working Haskell Platform 2013.2 Environment variable http_proxy is set correctly Machine has…
The_Ghost
  • 2,070
  • 15
  • 26