In Haskell, how can I get a list of available functions for a data structure?

I know that I am asking the wrong question here, but I come to Haskell from Python, and I would like to know how to get what would be equivalent to the list of available methods for the class. For example, if I use HXT to parse an XML file, and there are some functions that I can use in the resulting data structure NTree, for example, as a function getChildren, how could I get a list of them, say ghci? In Python, I can just import the module and module type. to get a list.

+4
source share
2 answers

https://www.haskell.org/hoogle/ may help a little. Give him the name of the module or the desired signature.

Haskell Python. Python ( self). Haskell Java Go: - , " ".

, , , . aka typeclasses (, Foldable, Traversable, Applicative ..), , .

, - , , . " " .

+3

Python dir, . Haskell . :info , Python dir.

Python dir, , , . Haskell :browse ghci, .

Python help , , . Haskell Haddocks on Hackage, . , ghci, , , , .

+2

Source: https://habr.com/ru/post/1689715/


All Articles