Reputation: 9370
How do Haskell programmers browse through a module to see the available methods and data types?
I am asking because i think that there is a faster and easier way then to always enter hoogle and look them up (as i am currently doing). I just want to see the methods and signatures.
P.S I discovered GHCI
provides a browse
method but is there any way to pipe the result in a file ? Redirecting ghci output to file ?
Upvotes: 1
Views: 99
Reputation: 34041
My usual approach to this is finding the package on Hackage and browsing the docs on there - which have the methods and signatures (types).
For example for Data.List
: http://hackage.haskell.org/package/base-4.11.1.0/docs/Data-List.html
Upvotes: 2
Reputation: 64750
How about a simple command line option and shell redirect?
ghci -e ':browse Prelude' > file.txt
Upvotes: 3