helper tools for reading haskell source

Hey, Often, when I read haskell code, I would like to know how and where a datatype or function is defined. Normaly I read the code of package, and I then use grep. But when it is not defined in the same package, grep can not help me. Example: I want to know where the datatype Frame and the function windowGetChildren in the wxHaskell odule are defined. I know there is hoogle, but for these it was unable to help me (or I was unable to use it correctly?). So I was wondering, what other tools or methods do you use to "analyse" haskell source? Regards, Nathan

On Sat, 19 Jan 2013 13:52:59 +0100, Nathan Hüsken
Example: I want to know where the datatype Frame and the function windowGetChildren in the wxHaskell module are defined. I know there is Hoogle, but for these it was unable to help me (or I was unable to use it correctly?).
windowGetChildren is defined in wxcore, so you have to enter windowGetChildren +wxcore in the Hoogle search field Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming --

A 19/01/2013, às 12:52, Nathan Hüsken escreveu:
Hey,
Often, when I read haskell code, I would like to know how and where a datatype or function is defined. Normaly I read the code of package, and I then use grep. But when it is not defined in the same package, grep can not help me.
Example: I want to know where the datatype Frame and the function windowGetChildren in the wxHaskell odule are defined. I know there is hoogle, but for these it was unable to help me (or I was unable to use it correctly?).
Also, it’s useful to know that hayoo has access to many more packages then hoogle, so I mostly use hayoo now. Also, EclipseFP and Leksah can give you this information with a key press or even just hovering the mouse over a function. best, Miguel

Nathan Hüsken wrote:
Often, when I read haskell code, I would like to know how and where a datatype or function is defined. Normaly I read the code of package, and I then use grep. But when it is not defined in the same package, grep can not help me.
Example: I want to know where the datatype Frame and the function windowGetChildren in the wxHaskell odule are defined. I know there is hoogle, but for these it was unable to help me (or I was unable to use it correctly?).
So I was wondering, what other tools or methods do you use to "analyse" haskell source?
If you're able to compile the code, you can also load its file in ghci. Then :i will tell you what module defines a symbol. -- see shy jo
participants (4)
-
Henk-Jan van Tuyl
-
Joey Hess
-
Miguel Negrao
-
Nathan Hüsken