word: Export word generic methods.

This commit is contained in:
Christopher Lemmer Webber 2019-06-09 16:22:25 -04:00 committed by Jay McCarthy
parent c0a494de5a
commit 1e75a43674
1 changed files with 18 additions and 0 deletions

View File

@ -28,6 +28,24 @@
(define (word-output w) #f)
(define (word-return w) w)])
(module+ generics
(provide
(contract-out
[word-fps
(-> word? flonum?)]
[word-label
(-> word? flonum? string?)]
[word-evt
(-> word? evt?)]
[word-event
(-> word? any/c word?)]
[word-tick
(-> word? word?)]
[word-output
(-> word? any/c)]
[word-return
(-> word? any/c)])))
(define (default b f d) (if b (f b) d))
(struct *word (fps label evt event tick output return)
#:methods gen:word