cpphsSource codeContentsIndex
Language.Preprocessor.Cpphs.ReadFirst
PortabilityAll
Stabilityexperimental
MaintainerMalcolm Wallace <Malcolm.Wallace@cs.york.ac.uk>
Description
Read the first file that matches in a list of search paths.
Synopsis
readFirst :: String -> Posn -> [String] -> Bool -> IO (FilePath, String)
Documentation
readFirstSource
:: Stringfilename
-> Posninclusion point
-> [String]search path
-> Boolreport warnings?
-> IO (FilePath, String)discovered filepath, and file contents
Attempt to read the given file from any location within the search path. The first location found is returned, together with the file content. (The directory of the calling file is always searched first, then the current directory, finally any specified search path.)
Produced by Haddock version 0.8