Module ICurry.Options

Author
Michael Hanus, Sascha Ecks
Version
July 2022

Definition and processing of options for the ICurry compiler.

Exported Datatypes


data ICOptions

Options for the ICurry compiler. Contains mappings from constructor and functions names into locally unique integers and other stuff.

Constructors:


Exported Functions


defaultICOptions :: ICOptions  Deterministic 


setConsFuns :: ICOptions -> [(String, [((String, String), (Int, Int))])] -> [(String, [((String, String), Int)])] -> ICOptions  Deterministic 


addQMap :: ((String, String), a) -> [(String, Map String a)] -> [(String, Map String a)]  Deterministic 


qmapLookup :: (String, String) -> [(String, Map String a)] -> Maybe a  Deterministic 


arityPosOfCons :: ICOptions -> (String, String) -> (Int, Int)  Deterministic 


posOfCons :: ICOptions -> (String, String) -> Int  Deterministic 


posOfFun :: ICOptions -> (String, String) -> Int  Deterministic 


printStatus :: ICOptions -> String -> IO ()  Deterministic 


printIntermediate :: ICOptions -> String -> IO ()  Deterministic 


printDetails :: ICOptions -> String -> IO ()  Deterministic 


funError :: ICOptions -> String -> a  Deterministic 


processOptions :: String -> [String] -> IO (ICOptions, [String])  Deterministic 

Process the actual command line argument and return the options and the name of the main program.


usageText :: String  Deterministic 


options :: [OptDescr (ICOptions -> ICOptions)]  Deterministic 


showQName :: (String, String) -> String  Deterministic 

Further infos:
  • solution complete, i.e., able to compute all solutions