8d00a456a0
This is a work-in-progress. I'd like to add a README to this project to explain my intention. The goal, roughly, is to port Elisp's fantastic f.el module to Haskell. I consider Haskell APIs to be useful but somewhat sloppily designed. In the same spirit as Elixir wrapping Erlang APIs, many of the functions I intend to define will simply wrap existing Haskell APIs, but with a hopefully cleaner API that I find more intuitive.
1.9 KiB
1.9 KiB
- Paths
- f-join (&rest args)
- f-split (path)
- f-expand (path &optional dir)
- f-filename (path)
- f-dirname (path)
- f-common-parent (paths)
- f-ext (path)
- f-no-ext (path)
- f-swap-ext (path ext)
- f-base (path)
- f-relative (path &optional dir)
- f-short (path)
- f-long (path)
- f-canonical (path)
- f-slash (path)
- f-full (path)
- f-uniquify (paths)
- f-uniquify-alist (paths)
- I/O
- f-read-bytes (path)
- f-write-bytes (data path)
- f-read-text (path &optional coding)
- f-write-text(text coding path)
- f-append-text(text coding path)
- f-append-bytes(text coding path)
- Destructive
- f-mkdir (&rest dirs)
- f-delete (path &optional force)
- f-symlink (source path)
- f-move (from to)
- f-copy (from to)
- f-copy-contenst (from to)
- f-touch (path)
- Predicates
- f-exists? (path)
- f-directory? (path)
- f-file? (path)
- f-symlink? (path)
- f-readable? (path)
- f-writable? (path)
- f-executable? (path)
- f-absolute? (path)
- f-relative? (path)
- f-root? (path)
- f-ext? (path ext)
- f-same? (path-a path-b)
- f-parent-of? (path-a path-b)
- f-child-of? (path-a path-b)
- f-ancestor-of? (path-a path-b)
- f-descendant-of? (path-a path-b)
- f-hidden? (path)
- f-empty? (path)
- Stats
- f-size (path)
- f-depth (path)
- Misc