A standard layout for R7RS libraries is to have an .sld file
containing the library import and export declarations with a parallel
.scm file with the same name in the same directory, which the .sld
file (include ...)s.
E.g. lib/dpk/mylibrary.sld:
(define-library (dpk mylibrary)
(import (scheme
Guile always compares record instances by their field structure when equal? is
used, including for instances of record types defined by R6RS
define-record-type, as demonstrated here:
$ guile --r6rs
scheme@(guile-user)> (import (rnrs records syntactic))
scheme@(guile-user)> (define-record-type fo