You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the actual function is total and we have makeRelative root path = path whenever we should actually get makeRelative root path = Nothing. But also, we have e.g. makeRelative "." path = path.
So, what would actually the laws be that specify makeRelative? And, could they please be added to the documentation?
The text was updated successfully, but these errors were encountered:
We document the behavior via doctests. It allows unit test cases and properties. So feel free to augment it with your examples. Then run make to regenerate the tests.
In GitLab by @abel on Oct 10, 2022, 20:58
See https://hackage.haskell.org/package/filepath-1.4.100.0/docs/System-FilePath.html#v:makeRelative .
I would intuitively have expected
makeRelative
to be a partial inverse to</>
, so that the following law holds:However, the actual function is total and we have
makeRelative root path = path
whenever we should actually getmakeRelative root path = Nothing
. But also, we have e.g.makeRelative "." path = path
.So, what would actually the laws be that specify
makeRelative
? And, could they please be added to the documentation?The text was updated successfully, but these errors were encountered: