ddc-driver-0.4.3.1: Disciplined Disciple Compiler top-level driver.

Safe HaskellSafe
LanguageHaskell98

DDC.Driver.Build.Locate

Synopsis

Documentation

locateModuleFromPaths Source #

Arguments

:: [FilePath]

Base paths.

-> ModuleName

Module name.

-> String

Source file extension

-> ExceptT String IO FilePath 

Locate the source file for a module, starting from the given list of base paths. If the module cannot be found, or is found from multiple paths then throw an error in the monad.