Safe Haskell | Safe |
---|---|
Language | Haskell98 |
- locateModuleFromPaths :: [FilePath] -> ModuleName -> String -> ExceptT String IO FilePath
Documentation
locateModuleFromPaths Source #
:: [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.