diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-06-23 03:23:44 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-06-23 03:48:22 +0200 |
commit | 1976980d4a272fb7fc3694c734bfc6825edfc721 (patch) | |
tree | 8460db1176c64895e9968447588953fac85fe7d6 /module/vcomponent/duration.scm | |
parent | Remove all inline use-modules. (diff) | |
download | calp-1976980d4a272fb7fc3694c734bfc6825edfc721.tar.gz calp-1976980d4a272fb7fc3694c734bfc6825edfc721.tar.xz |
Centralize (almost) all exports to :export in define-module.
Diffstat (limited to 'module/vcomponent/duration.scm')
-rw-r--r-- | module/vcomponent/duration.scm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/module/vcomponent/duration.scm b/module/vcomponent/duration.scm index 637d7db4..449645fc 100644 --- a/module/vcomponent/duration.scm +++ b/module/vcomponent/duration.scm @@ -6,7 +6,10 @@ :use-module (ice-9 match) :use-module (srfi srfi-9 gnu) :use-module (srfi srfi-1) - :export (duration parse-duration)) + :export (duration + parse-duration + format-duration + )) (define-immutable-record-type <duration> (make-duration sign week day dur-time) @@ -26,7 +29,7 @@ (make-duration sign week day time)) -(define-public (format-duration duration) +(define (format-duration duration) (with-output-to-string (lambda () (unless (eq? '+ (duration-sign duration)) |