def hdevtools_info(filename, symbol_name, cabal=None): """ Uses hdevtools info filename symbol_name to get symbol info """ contents = call_hdevtools_and_wait(['info', filename, symbol_name], filename=filename, cabal=cabal) return parse_info(symbol_name, contents) if contents else None
def ghcmod_info(filename, module_name, symbol_name, cabal = None): """ Uses ghc-mod info filename module_name symbol_name to get symbol info """ contents = call_ghcmod_and_wait(['info', filename, module_name, symbol_name], filename = filename, cabal = cabal) # TODO: Returned symbol doesn't contain location # But in fact we use ghcmod_info only to retrieve type of symbol return parse_info(symbol_name, contents)
def hdevtools_info(filename, symbol_name, cabal=None): """ Uses hdevtools info filename symbol_name to get symbol info """ contents = call_hdevtools_and_wait(["info", filename, symbol_name], filename=filename, cabal=cabal) return parse_info(symbol_name, contents) if contents else None