getModuleName
Extract the module name (e.g., 'Data.List') from PureScript code or files, enabling easy identification of code structure without relying on an IDE server. Supports both file paths and code snippets.
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. |