utils.rkt: Add dotit.
This commit is contained in:
parent
05a5ce2ad1
commit
522dbaa85c
1 changed files with 6 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue