dhall-to-cabal-1.3.2.0: Compile Dhall expressions to Cabal files

Safe HaskellSafe
LanguageHaskell2010

DhallToCabal.Util

Synopsis

Documentation

relativeTo Source #

Arguments

:: FilePath

The path to be relative to. Note that the final file-name is ignored: foo/bar is relative to foo/, even if foo/bar is a directory.

-> FilePath

The path to relativise.

-> FilePath 

Like makeRelative, but will introduce .. segments (and hence will misbehave in the presence of symlinks).

If the path being relativised is identical to the root path, then this will return the empty string.