From: "Thiemann, Rene" <Rene.Thiemann@uibk.ac.at>
Dear all,
we currently have a problem that generated Haskell code does not compile
if we load theory “HOL-Library.Code_Char”.
The problem only occurs for Haskell and not for Scala, SML, OCaml, ...
Minimal Example:
theory Bug
imports
Main
"HOL-Library.Code_Char"
begin
definition foo where "foo = [0]"
export_code foo in Haskell
(* results in
foo :: forall a. (Arith.Zero a) => [a];
foo = "\^@";
and not in
foo :: forall a. (Arith.Zero a) => [a];
foo = [Arith.zero];
*)
end
With best regards,
René
From: Florian Haftmann <florian.haftmann@informatik.tu-muenchen.de>
For the record: this has been resolved in 3817a93a3e5e.
Florian
signature.asc
Last updated: Nov 21 2024 at 12:39 UTC