diff --git a/quad/quad/quad.rkt b/quad/quad/quad.rkt index bf4bc4a7..7335c158 100644 --- a/quad/quad/quad.rkt +++ b/quad/quad/quad.rkt @@ -62,7 +62,9 @@ (string-join (map ~v (flatten (hash->list (quad-attrs q)))) " " #:before-first "(" #:after-last ")") "") - (string-join (map ~v (quad-elems q)) " " #:before-first " ")) p)) + (match (quad-elems q) + [(? pair?) (string-join (map ~v (quad-elems q)) " " #:before-first " ")] + [_ ""])) p)) #:methods gen:equal+hash [(define equal-proc quad=?) (define (hash-proc h recur) (equal-hash-code h))