purescript-0.7.3.0: PureScript Programming Language Compiler

Safe HaskellNone
LanguageHaskell98

Language.PureScript.Docs.ParseAndDesugar

Synopsis

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.