Construct a new boxed resource from a valid Resource
Convenience method for loading a file-like resource.
Convenience method for loading a file-like resource.
load
is a IO
that does the work of turning the resource into a String
that gets parsed by the ConfigParser
.
Returns a resource that tries r1
, and if it fails, falls back to r2
Convenience method for resolving a path-like name relative to another.
Convenience method for resolving a path-like name relative to another.
resolve("foo/bar", "baz")
= "foo/baz"
resolve("foo/bar/", "baz")
= "foo/bar/baz"
resolve(_, "/bar")
= "/bar"