From 0e9c4f8c903c72c8a9fe8b744cf778666f7b7cfe Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sun, 26 Jun 2022 11:10:49 +0530 Subject: bin: Add type. * bin/tissue: Import (srfi srfi-9). (): New type. --- bin/tissue | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bin/tissue b/bin/tissue index 7bc01f1..42b46c8 100755 --- a/bin/tissue +++ b/bin/tissue @@ -23,6 +23,7 @@ exec guile --no-auto-compile -s "$0" "$@" (import (rnrs exceptions) (rnrs io ports) (srfi srfi-1) + (srfi srfi-9) (srfi srfi-19) (srfi srfi-26) (srfi srfi-37) @@ -49,6 +50,16 @@ exec guile --no-auto-compile -s "$0" "$@" (define %xapian-index (string-append %state-directory "/xapian")) +(define-record-type + (indexed-document reader web-uri) + indexed-document? + ;; A thunk that returns a document object (currently either an + ;; or a object), presumably by reading it from a + ;; file or other source + (reader indexed-document-reader) + ;; A string URI linking to this document on the web + (web-uri indexed-document-web-uri)) + (define (invoke program . args) (unless (zero? (apply system* program args)) (error "Invocation of program failed" (cons program args)))) -- cgit v1.2.3