getTopLevelDeclarations
Extract and filter main definitions from PureScript code, including names, types, and source text. Use file path or code input with optional regex filters for specific results.
Instructions
Get detailed information about all main definitions in PureScript code: names, types (function/data/class), and full source code. Includes filtering options to find specific items. More comprehensive than getTopLevelDeclarationNames.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
code | No | PureScript code string. | |
filePath | No | Absolute path to the PureScript file. Only absolute paths are supported. | |
filters | No | Optional filters to apply to the declarations. |