solvuu / phat

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

define module to open in client mli files #21

Closed agarwal closed 8 years ago

agarwal commented 8 years ago

Right now, an mli file using Phat has to have signatures like:

val f : (Phat_pure.Std.abs, Phat_pure.Std.file) Phat_pure.Std.t

Even with the various type abbreviations we provide, you have to write at least Phat_pure.Std.abs_file. Opening Phat_pure.Std isn't an option because type t and item are too common.

Only solution I see is to define another module specifically for this purpose, with type ('a,'b) path = ('a,'b) t, and types like abs, rel, etc made directly available.

agarwal commented 8 years ago

Done in b9a0a9bef4d7004b2650f86f8ec71550a8346c29.