aboutsummaryrefslogtreecommitdiff
path: root/main.rkt
diff options
context:
space:
mode:
authorMasaya Tojo <masaya@tojo.tokyo>2018-06-24 12:51:24 +0900
committerMasaya Tojo <masaya@tojo.tokyo>2018-06-24 12:52:39 +0900
commit9a61542e8aadeb6bf6627c07364e24a226d00913 (patch)
tree92b6458ea2322f90734c1d4d0dcccc34b3959889 /main.rkt
parent7a2db4a1097a852288c0b782c32c166624cc26dc (diff)
Add contract
Diffstat (limited to 'main.rkt')
-rw-r--r--main.rkt3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.rkt b/main.rkt
index 8bf8222..95829ef 100644
--- a/main.rkt
+++ b/main.rkt
@@ -1,4 +1,5 @@
#lang racket
+(require racket/contract)
(require pict)
(define CELL-SIZE 30)
@@ -111,4 +112,4 @@
(define-values (result height-list)
(pict-sexp/helper sexp '() (λ () (error "pict-sexp: implementation error"))))
result)
-(provide pict-sexp)
+(provide/contract [pict-sexp (any/c . -> . pict?)])