Safe Haskell | Unsafe |
---|---|
Language | Haskell2010 |
This module gives access to internals and operation which can
subvert the type-safety of Path
.
Since: 0.2.0.0
Documentation
Paths
A Path
is a wrapped FilePath
with a type-level tag indicating where this
path is rooted (relative to the current directory, absolute path, relative to
a web domain, whatever). Most operations on Path
are just lifted versions
of the operations on the underlying FilePath
. The tag however allows us to
give a lot of operations a more meaningful type. For instance, it does not
make sense to append two absolute paths together; instead, we can only append
an unrooted path to another path. It also means we avoid bugs where we use
one kind of path where we expect another.