[Haskell-beginners] helper tools for reading haskell source
Joey Hess
joey at kitenet.net
Sat Jan 19 16:58:02 CET 2013
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <http://www.haskell.org/pipermail/beginners/attachments/20130119/7d68187a/attachment.pgp>
More information about the Beginners
mailing list