I'm trying to get the urweb server to return json, but what is the
type/kind I should put in the transaction monad?


val main : <here> -> transaction page


What would I put in <here>?

Furthermore- I don't even know if my json-like structure is allowed, the
compiler isn't complaining about it, so maybe it's fine.


fun main () = return queryX1 (SELECT topic.Title, topic.Body FROM topic)


I'm not even sure I know what I'm doing, `completely new to ML-style
languages.

- Isaac

P.S. I've never actually used a Mailing List before, so if my post is
malformed, please tell me.
_______________________________________________
Ur mailing list
[email protected]
http://www.impredicative.com/cgi-bin/mailman/listinfo/ur

Reply via email to