[Ur] Minor question about simple Sql demo
Stefan Scott
stefanscottalexx at gmail.com
Wed Sep 16 11:10:13 EDT 2015
Hello -
As a learning exercise, I have been studying and modifying the simple Sql
demo here:
http://www.impredicative.com/ur/demo/sql.html
My modified version (which now has two tables: a child table `Thing` and a
parent table `Color`) is here:
https://github.com/StefanScott/UrWeb-demoSql-1
This modified version compiles and runs correctly.
---
Now I tried doing a minor modification.
I noticed that the `delete` function takes two arguments:
delete id ()
The second argument seemed unnecessary, so I tried removing it.
However, removing the second argument gave a compile error:
Have con: int -> transaction (xml ([Html = ()]) ([]) ([]))
Need con: int -> {} -> transaction (xml ([Html = ()]) ([]) ([]))
Why does a compile error occur when the second argument to `delete` is
removed?
Thanks for any help!
###
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.impredicative.com/pipermail/ur/attachments/20150916/9a87e723/attachment.html>
More information about the Ur
mailing list