aboutsummaryrefslogtreecommitdiff
path: root/module/text/numbers/en.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-06-23 03:23:44 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-06-23 03:48:22 +0200
commit1976980d4a272fb7fc3694c734bfc6825edfc721 (patch)
tree8460db1176c64895e9968447588953fac85fe7d6 /module/text/numbers/en.scm
parentRemove all inline use-modules. (diff)
downloadcalp-1976980d4a272fb7fc3694c734bfc6825edfc721.tar.gz
calp-1976980d4a272fb7fc3694c734bfc6825edfc721.tar.xz
Centralize (almost) all exports to :export in define-module.
Diffstat (limited to '')
-rw-r--r--module/text/numbers/en.scm11
1 files changed, 7 insertions, 4 deletions
diff --git a/module/text/numbers/en.scm b/module/text/numbers/en.scm
index 622decd5..6a5a636d 100644
--- a/module/text/numbers/en.scm
+++ b/module/text/numbers/en.scm
@@ -1,14 +1,17 @@
(define-module (text numbers en)
- :use-module (ice-9 format))
+ :use-module (ice-9 format)
+ :export (number->string-cardinal
+ number->string-ordinal
+ each-string))
-(define-public (number->string-cardinal n)
+(define (number->string-cardinal n)
(format #f "~r" n))
-(define-public (number->string-ordinal n)
+(define (number->string-ordinal n)
(format #f "~:r" n))
;; Allows extra args to handle eventual local changes.
-(define-public (each-string count . _)
+(define (each-string count . _)
(case count
[(1) "each"]
[(2) "every other"]