Safe Haskell | None |
---|---|
Language | Haskell98 |
- rebuildFile :: (Ide m, MonadLogger m, MonadError PscIdeError m) => FilePath -> m Success
Documentation
rebuildFile :: (Ide m, MonadLogger m, MonadError PscIdeError m) => FilePath -> m Success Source #
Given a filepath performs the following steps:
- Reads and parses a PureScript module from the filepath.
- Builds a dependency graph for the parsed module from the already loaded ExternsFiles.
- Attempts to find an FFI definition file for the module by looking for a file with the same filepath except for a .js extension.
- Passes all the created artifacts to
rebuildModule
. - If the rebuilding succeeds, returns a
RebuildSuccess
with the generated warnings, and if rebuilding fails, returns aRebuildError
with the generated errors.