doc-src/Codegen/Thy/examples/arbitrary.ML
author bulwahn
Tue, 05 Apr 2011 09:38:23 +0200
changeset 42230 594480d25aaa
parent 30226 2f4684e2ea95
permissions -rw-r--r--
deriving bounded_forall instances in quickcheck_exhaustive

structure Codegen = 
struct

val arbitrary_option : 'a option = NONE;

fun dummy_option [] = arbitrary_option
  | dummy_option (x :: xs) = SOME x;

end; (*struct Codegen*)