getImports :: ParserOptsParser options
-> BoolImplicit Prelude?
-> StringBufferParse this.
-> FilePathFilename the buffer came from. Used for reporting parse error locations.
-> FilePathThe original source filename (used for locations in the function result)
-> IO (Either (Messages PsMessage) ([(RawPkgQual, Located ModuleName)], [(RawPkgQual, Located ModuleName)], Bool, Located ModuleName))The source imports and normal imports (with optional package names from -XPackageImports), and the module name.
Parse the imports of a source file.
Throws a SourceError if parsing fails.