cpphs
Copyright2004 Malcolm Wallace
LicenseLGPL
MaintainerMalcolm Wallace <Malcolm.Wallace@cs.york.ac.uk>
Stabilityexperimental
PortabilityAll
Safe HaskellSafe-Inferred
LanguageHaskell98

Language.Preprocessor.Cpphs.ReadFirst

Description

Read the first file that matches in a list of search paths.

Synopsis

Documentation

readFirst #

Arguments

:: String

filename

-> Posn

inclusion point

-> [String]

search path

-> Bool

report 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.)

readFileUTF8 :: FilePath -> IO String #

writeFileUTF8 :: FilePath -> String -> IO () #