curry.backends.py.compiler module
- curry.backends.py.compiler.write_module(target_object, stream, goal=None, section_headers=True, module_main=True, goalscheme=None)[source]
Writes a compiled module as Python. With
module_main, the file ends in a footer that evaluatesgoalwhen the file runs as a program;goalschemeis the FlatCurry type of the goal as text, recorded so that a goal with class constraints runs without its interface file.