path.km 447 B

1234567891011121314151617181920212223
  1. type Path native;
  2. export const Cwd: Path :=
  3. native 'os::Cwd';
  4. export const EntryModulePath: Path :=
  5. native 'os::EntryModulePath';
  6. export const EntryModuleDirPath: Path :=
  7. native 'os::EntryModuleDirPath';
  8. export function Path:
  9. &(String) => Path
  10. native 'parse-path';
  11. export function String:
  12. &(Path) => String
  13. native 'String from Path';
  14. export function join:
  15. &(Path,List[String]) => Path
  16. native 'path-join';