solvuu / phat

Strongly typed file path and file system operations.
ISC License
26 stars 4 forks source link

fix `equal` #9

Closed agarwal closed 8 years ago

agarwal commented 8 years ago

It still assumes that two paths are equal if their normalizations are equal, but we decided that the explicit structure of a path matters. Thus, equal should now be OCaml's polymorphic equal.

agarwal commented 8 years ago

I'm wrong. We decided that we should not resolve links. Normalization just eliminates Dots and Dotdots, which should be disregarded for equality checking. In the rare case that someone even cared about these, you can use OCaml's polymorphic equality. So the current implementation is already what we want.