 
   defp print_callback_doc({{fun, _}, _line, kind, doc}, spec) do
     definition =
-      Kernel.Typespec.spec_to_ast(fun, spec)
+      Typespec.spec_to_ast(fun, spec)
       |> Macro.to_string
 
     print_doc("#{kind}callback #{definition}", doc || "")

  Prints the type in module with given arity.
  """
  def t(module, type, arity) when is_atom(module) and is_atom(type) and is_integer(arity) do
    case Kernel.Typespec.beam_types(module) do
      nil   -> nobeam(module)
      types ->
        printed =

  end

  defp get_behaviour_docs(mod) do
    callbacks = Typespec.beam_callbacks(mod)
    docs = Code.get_docs(mod, :behaviour_docs)
    cond do
      is_nil(callbacks) -> :no_beam
