Module Curry.Files

This library defines various I/O actions to read abstract syntax trees of Curry programs and transform them into the representation defined in module Curry.Types.

Assumption: the abstract syntax tree of a Curry program is stored in file with extension .sast (short AST) or .ast (full AST).

Version
August 2025 ---------------------------------------------------------------------------

Exported Functions


readShortAST :: String -> IO (Module ())  Non-deterministic 

Reads the short-AST from a specified module


readFullAST :: String -> IO (Module ())  Non-deterministic 

Reads the AST from a specified module


readShortASTWithParseOptions :: String -> FrontendParams -> IO (Module ())  Non-deterministic 

Reads the short-AST with further options from a specified module


readFullASTWithParseOptions :: String -> FrontendParams -> IO (Module ())  Non-deterministic 

Reads the AST with further options from a specified module


shortASTFileName :: String -> String  Deterministic 

Get the short-AST filename of a Curry programm


fullASTFileName :: String -> String  Deterministic 

Get the AST filename of a Curry programm


readASTFile :: String -> IO (Module ())  Non-deterministic 

Reads the AST from a specified file


readShortASTFileRaw :: String -> IO String  Deterministic 

Reads the text from a specified file containing an AST