utils.rkt: Add dotit.

This commit is contained in:
Sergiu Ivanov 2020-12-21 23:23:11 +01:00
parent 05a5ce2ad1
commit 522dbaa85c

View file

@ -1,7 +1,8 @@
#lang typed/racket
(require (for-syntax syntax/parse racket/list)
typed-compose)
typed-compose
"graph-typed.rkt")
(provide Variable VariableMapping GeneralPair
eval-with eval1-with
@ -250,3 +251,7 @@
(check-equal? (hash-ref m1 'b) '(or b (not a)))
(check-equal? (hash-ref m2 'b) '(or b (not a)))
(check-equal? (hash-ref m3 'b) '(or b (not a)))))
;;; Typeset the graph via graphviz and display it.
(: dotit (-> Graph Void))
(define dotit (compose display graphviz))