Re: [isabelle] Code generator forgets to rename type variables for constants with code_abort



> theory Scratch imports Main begin
> 
> typedecl 'in foo
> consts Foo :: "'in foo"
> code_datatype Foo
> definition foo :: "unit => 'in foo" where [code del]: "foo _ = Foo"
> code_abort foo
> 
> definition bar :: "unit foo" where "bar = foo ()"
> export_code bar in OCaml (* OCaml does not like type variables called
> 'in *)
> 
> Obviously, one can fix this by changing the type signature at the
> definition of foo, but I would prefer to use consistent names for my
> type variables.

See now http://isabelle.in.tum.de/reports/Isabelle/rev/89d5b69e5a08
where normalizing of type variable names is done more extensively.

Cheers,
	Florian

-- 

PGP available:
http://home.informatik.tu-muenchen.de/haftmann/pgp/florian_haftmann_at_informatik_tu_muenchen_de

Attachment: signature.asc
Description: OpenPGP digital signature



This archive was generated by a fusion of Pipermail (Mailman edition) and MHonArc.