Safe Haskell | None |
---|---|
Language | Haskell98 |
- parseAndDesugar :: [FilePath] -> [(PackageName, FilePath)] -> ([Bookmark] -> [Module] -> IO a) -> IO (Either ParseDesugarError a)
- data ParseDesugarError
Documentation
parseAndDesugar :: [FilePath] -> [(PackageName, FilePath)] -> ([Bookmark] -> [Module] -> IO a) -> IO (Either ParseDesugarError a) Source
Given:
- A list of local source files
- A list of source files from external dependencies, together with their package names
- A callback, taking a list of bookmarks, and a list of desugared modules
This function does the following:
- Parse all of the input and dependency source files
- Partially desugar all of the resulting modules
- Collect a list of bookmarks from the whole set of source files
- Collect a list of desugared modules from just the input source files (not dependencies)
- Call the callback with the bookmarks and desugared module list.