Extract package:doctest-parallel

Extract all docstrings from given list of files/modules. This includes the docstrings of all local modules that are imported from those modules (possibly indirect). Can throw ExtractError if an error occurs while extracting the docstrings, or a SourceError if an error occurs while parsing the module. Can throw a ModuleNotFoundError if a module's source file cannot be found.
Given a filepath to a package.cabal, parse it, and yield a Library. Returns and error if no library was specified in the cabal package file.
Given a filepath to a package.cabal, parse it, and yield a Library. Yields the default Library if first argument is Nothing, otherwise it will look for a specific sublibrary.
Like extract, but runs in the IO monad given GHC parse arguments.