Mercurial > urweb
view tests/lessSafeFfi.ur @ 2038:ec2c7a22df0d
Fix off-by-one error in less-safe FFI wrapper generation
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sun, 13 Jul 2014 06:14:23 -0400 |
parents | 403f0cc65b9c |
children | 3d10ae22abd6 |
line wrap: on
line source
ffi foo : int -> int ffi bar serverOnly benignEffectful : int -> transaction unit ffi baz : transaction int ffi adder : int -> int -> int ffi bup jsFunc "alert" : string -> transaction unit fun other () : transaction page = (*bar 17; q <- baz;*) return <xml><body> (*{[foo 42]}, {[q]}*) <button onclick={fn _ => bup "asdf"}/> </body></xml> fun main () = return <xml><body> <form> <submit action={other}/> </form> </body></xml>