Skip to content
Snippets Groups Projects
Commit 1b4513eb authored by Samuel Hym's avatar Samuel Hym
Browse files

Collect types also for non-monadic functions

Primitive operations in C world, such as `==`, `&&`, etc. are naturally
represented as non-monadic functions in Gallina.

With this patch, given this code:

    do x <- returnM (eqb y z) ;
    ...

the type for x is properly generated as the return type of eqb, without
requiring an explicit definition of a monadic lifting of eqb.
parent 14467551
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment