doc-src/Codegen/Thy/examples/arbitrary.ML
author blanchet
Mon, 04 Apr 2011 18:53:35 +0200
changeset 42227 662b50b7126f
parent 30226 2f4684e2ea95
permissions -rw-r--r--
if "monomorphize" is enabled, mangle the type information in the names by default

structure Codegen = 
struct

val arbitrary_option : 'a option = NONE;

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

end; (*struct Codegen*)