Safe Haskell | None |
---|---|
Language | Haskell98 |
Getting declarations from PureScript sourcefiles
- parseModule :: MonadIO m => FilePath -> m (Either FilePath (FilePath, Module))
- getImportsForFile :: (MonadIO m, MonadError PscIdeError m) => FilePath -> m [ModuleImport]
- extractSpans :: SourceSpan -> Declaration -> [(Either Text Text, SourceSpan)]
Documentation
getImportsForFile :: (MonadIO m, MonadError PscIdeError m) => FilePath -> m [ModuleImport] Source #
:: SourceSpan | The surrounding span |
-> Declaration | The declaration to extract spans from |
-> [(Either Text Text, SourceSpan)] | A |
Given a surrounding Sourcespan and a Declaration from the PS AST, extracts definition sites inside that Declaration.