             [detritus.var :refer [var->ns var->sym macro?]]
             [detritus.update :refer [update]]))
 
-(defn var->type [v]
+(defn var->type
+
+  [v]
   {:pre [(var? v)]}
   (let [m (meta v)]
     (cond (:macro m)                            :macro

  (let [docs (-> (meta var)
                 (assoc  :src  (var->src var)
                         :type (var->type var))
                 (update :name name)
                 (update :ns   ns-stringifier))]
    (api/write-meta config
                    (var->thing config var)

                              (not (macro? %1)))
                        ns-vars)
        vars    (filter #(not (fn? @%1)) ns-vars)]

    (let [meta  (-> ns the-ns meta)
          thing (ns->thing config ns)]
      (api/write-meta config thing meta))

    ;; write per symbol docs
    (doseq [var ns-vars]
