curry-base-0.2.4: Functions for manipulating Curry programs

Curry.FlatCurry.Tools

Documentation

updProg :: (String -> String) -> ([String] -> [String]) -> ([TypeDecl] -> [TypeDecl]) -> ([FuncDecl] -> [FuncDecl]) -> ([OpDecl] -> [OpDecl]) -> Prog -> ProgSource

updRule :: ([VarIndex] -> [VarIndex]) -> (Expr -> Expr) -> (String -> String) -> Rule -> RuleSource

updRuleArgs :: ([Int] -> [Int]) -> Rule -> RuleSource

mapOr :: (Expr -> Expr) -> Expr -> ExprSource