Module DefaultRuleUsage

This module contains some operations to check and access default rules in a Curry program.

Author: Michael Hanus

Version: November 2022

Summary of exported operations:

containsDefaultRules :: CurryProg -> Bool  Deterministic 
Does a program contains default rules?
checkDefaultRules :: CurryProg -> [((String,String),String)]  Deterministic 
Check correct usage of default rules and return function names and errors for incorrect uses.
isDefaultFunc :: CFuncDecl -> Bool  Deterministic 
Is this function a declaration of a default rule?
isDefaultName :: String -> Bool  Deterministic 
Is this the name of a specification?
fromDefaultName :: String -> String  Deterministic 
Drop the default rule suffix "'default" from the name:

Exported operations:

containsDefaultRules :: CurryProg -> Bool  Deterministic 

Does a program contains default rules?

checkDefaultRules :: CurryProg -> [((String,String),String)]  Deterministic 

Check correct usage of default rules and return function names and errors for incorrect uses.

isDefaultFunc :: CFuncDecl -> Bool  Deterministic 

Is this function a declaration of a default rule?

isDefaultName :: String -> Bool  Deterministic 

Is this the name of a specification?

fromDefaultName :: String -> String  Deterministic 

Drop the default rule suffix "'default" from the name: