;; search public API — assembles the canonical Haskell source from all layers. ;; Tests and callers concatenate `search/src` with their own top-level bindings ;; (e.g. "result = lookupTerm \"cat\" idx\n") and evaluate via the haskell-on-sx ;; interpreter. Public Haskell entry points: indexDoc, lookupTerm, deleteDoc, ;; docFreq, allTerms, tokens, positioned. (define search/src (str search/tokenize-src "\n" search/index-src))