Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- fileRelativeToAbsolute :: String -> Q Exp
- fileRelativeToAbsoluteStr :: String -> Q String
- fileRelativeToProject :: FilePath -> Q Exp
Documentation
fileRelativeToAbsoluteStr :: String -> Q String Source #
Use a path relative to the source file in which you're writing the path instead of relative to the working directory in which that source file will be compiled.
e.g. if this source file is in `my-project/src/Foo/Bar.hs`, `fileRelativeToAbsoluteStr "......configsettings.yml"` will load the path at `my-project/config/settings.yml`.
If this function is provided an absolute path, it will simply canonicalize that path
by calling canonicalizePath
rather than compute an absolute path from
a relative path.