aip-0.1.1: Aeronautical Information Package (AIP)

Safe HaskellNone
LanguageHaskell2010

Data.Aviation.Aip.Processing

Synopsis

Documentation

doRelative :: (FilePath, FilePath) -> FilePath -> (FilePath, FilePath) Source #

>>> doRelative ("/a/b/c/d/e", "/a/b/c") "/a/b"
("/a/b/c/d/e","../../c")
>>> doRelative ("/a/b/c/d/e", "/a/b/c/x") "/a/b"
("/a/b/c/d/e","../../c/x")
>>> doRelative ("/a/b/c/d/e", "/a/b/c/x") "/a"
("/a/b/c/d/e","../../../b/c/x")