view tests/mutual.ur @ 1217:4d206e603300

Abstract type for evalExp state; handle WHERE conditions soundly
author Adam Chlipala <adamc@hcoop.net>
date Sat, 10 Apr 2010 10:24:13 -0400
parents 61a1f5c5ae2c
children
line wrap: on
line source
datatype foo = A | B of bar
and bar = C | D of foo

val q = B (D A)

fun main () = return <xml>
  {case q of
       B (D A) => <xml>Good</xml>
     | _ => <xml>Bad</xml>}
</xml>