     Enum.map(specs, &{tag, &1})
   end
 
-  def split_mod_func_call(call) do
-    {:ok, quoted} = call |> Code.string_to_quoted
-    case Macro.decompose_call(quoted) do
-      {{:__aliases__, _, mod_parts}, fun, _args} ->
-        {Module.concat(mod_parts), fun}
-      _ -> {:error, "Could not split call: #{call}"}
-    end
-  end
-
 end

    end
  end

  defp print_doc_arg({ :\\, _, [left, right] }) do
    print_doc_arg(left) <> " \\\\ " <> Macro.to_string(right)
  end

  # From https://github.com/elixir-lang/elixir/blob/c983b3db6936ce869f2668b9465a50007ffb9896/lib/iex/lib/iex/introspection.ex

  alias Kernel.Typespec

  def get_docs_md(mod, nil) do
    mod_str = module_to_string(mod)
    title = "> #{mod_str}\n\n"
    body = case Code.get_docs(mod, :moduledoc) do
      {_line, false} ->
        "No documentation found"
      {_line, doc} ->
        doc
    end
    title <> body
  end

  def get_docs_md(mod, fun) do
    docs = Code.get_docs(mod, :docs)
