free-compiler-0.3.0.0: A Haskell to Coq compiler.

Safe HaskellNone
LanguageHaskell2010

FreeC.Backend.Coq.Converter.FuncDecl.Rec.WithHelpers

Description

This module contains functions for converting mutually recursive function declarations by splitting them into one or more recursive helper function, whose decreasing argument is not lifted to the Free monad, and a non-recursive main function.

Synopsis

Documentation

convertRecFuncDeclsWithHelpers :: [FuncDecl] -> Converter [Sentence] Source #

Converts recursive function declarations into recursive helper and non-recursive main functions.

convertRecFuncDeclsWithHelpers' :: [FuncDecl] -> Converter ([Sentence], [Sentence]) Source #

Like convertRecFuncDeclsWithHelpers but does return the helper and main functions separately.