I am looking for a way to get all the Haskell prelude built-in namespaces.
something equivalent to what we can have in Python:
>>> print([func for func in dir(__builtins__) if func[0].islower()]) ['abs', 'all', 'any', 'ascii', 'bin', 'bool', 'bytearray', 'bytes', 'callable', 'chr', 'classmethod', 'compile', 'complex', 'copyright', 'credits', 'delattr', 'dict', 'dir', 'divmod', 'enumerate', 'eval', 'exec', 'exit', 'filter', 'float', 'format', 'frozenset', 'getattr', 'globals', 'hasattr', 'hash', 'help', 'hex', 'id', 'input', 'int', 'isinstance', 'issubclass', 'iter', 'len', 'license', 'list', 'locals', 'map', 'max', 'memoryview', 'min', 'next', 'object', 'oct', 'open', 'ord', 'pow', 'print', 'property', 'quit', 'range', 'repr', 'reversed', 'round', 'set', 'setattr', 'slice', 'sorted', 'staticmethod', 'str', 'sum', 'super', 'tuple', 'type', 'vars', 'zip'] >>> print(len.__doc__) Return the number of items in a container. >>>
This is not a question of “how to get information from the contents of the library,” as they say here: Is there a way to see a list of functions in a module in GHCI?
This is about the built-in, so about the language when you did not import libray.
I need to get a list of functions in pro program.hs not in the Prelude help system or in the Prelude termination system.