getModuleName
Extract PureScript module names from files or code snippets to analyze code structure without requiring an IDE server. Supports absolute file paths or direct code input.
Instructions
Extract the module name (like 'Data.List' or 'Main') from PureScript code. Works on files or code snippets without needing the IDE server. Useful for understanding code structure.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
code | No | PureScript code string. | |
filePath | No | Absolute path to the PureScript file. Only absolute paths are supported. |