[isabelle-dev] Imperative HOL: missing parenthesis for Haskell code generation of do-blocks

Florian Haftmann florian.haftmann at informatik.tu-muenchen.de
Thu Sep 25 16:43:36 CEST 2014

Hi Christian,

> theory Test
> imports "~~/src/HOL/Imperative_HOL/Imperative_HOL"
> begin
> definition "foo m = do { m; return () }"
> definition "bar = foo (do { return (); return () })"
> export_code bar in Haskell
> the code for "bar" does not compile, since parenthesis are missing
> around its argument do-block.

thanks for reporting this.  Until this is resolved, you may want help
yourself dropping the »code_monad« declaration in the Imperative_HOL

Hope this helps,


PGP available:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <https://mailman46.in.tum.de/pipermail/isabelle-dev/attachments/20140925/52f53763/attachment.sig>

More information about the isabelle-dev mailing list