Typeclass representing the interface to a effectful cursor of Data
.
Typeclass representing the interface to a effectful cursor of Data
.
Laws
Vector
.
FileSystem
interpreters for a filesystem that has no, and doesn't support
creating any, files.
In-Memory FileSystem interpreters, useful for testing/stubbing when a "real" interpreter isn't needed or desired.
In-Memory FileSystem interpreters, useful for testing/stubbing when a "real" interpreter isn't needed or desired.
NB: Since this is in-memory, careful with writing large amounts of data to the file system.
Use with care.
Use with care. Functions make the assumption that Sandboxed Pathy paths do not contain ParentIn or Current. This can not currently be guaranteed.
Returns the first named segment of the given relative path.
Rebases absolute paths onto the provided absolute directory, so
rebaseA(/baz)(/foo/bar)
becomes /baz/foo/bar
.
Sandboxes an absolute path, needed due to parsing functions producing unsandboxed paths.
Sandboxes an absolute path, needed due to parsing functions producing unsandboxed paths.
TODO[pathy]: We know this can't fail, remove once Pathy is refactored to be more precise
Removes the given prefix from an absolute path, if present.