Ticket #333 (closed enhancement: wontfix)
Type Predicate For Connection - Typed/Racket
Reported by: | ray.racine@… | Owned by: | ryanc |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | schematics/spgsql.plt | Keywords: | |
Cc: | Version: | (2 3) | |
Racket Version: |
Description
Would like to require/typed module.
To lift the connection type need a type predicate.
e.g.
(module spgsql mzscheme
(require (lib "class.ss")
...
"private/socket.ss")
(provide connect
connection?
...
format-sql
concat-sql)
(define (connection? conn)
(is-a? conn connection%))
...
Then in typed/racket
(require/typed
(planet schematics/spgsql:2:3/spgsql)
(opaque connection connection?))
Change History
Note: See
TracTickets for help on using
tickets.