Paths
A Path is simply a 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.
Instances13FromObjectKey, ToObjectKey, Eq, Ord, Show, Pretty, …
Monad m => FromObjectKey m (Path root)Defined in hackage-security-0.6.3.2 · Hackage.Security.Util.JSONMonad m => ToObjectKey m (Path root)Defined in hackage-security-0.6.3.2 · Hackage.Security.Util.JSONEq (Path a)Defined in hackage-security-0.6.3.2 · Hackage.Security.Util.PathOrd (Path a)Defined in hackage-security-0.6.3.2 · Hackage.Security.Util.PathShow (Path a)Defined in hackage-security-0.6.3.2 · Hackage.Security.Util.PathPretty (Path CacheRoot)Defined in hackage-security-0.6.3.2 · Hackage.Security.TUF.PathsPretty (Path IndexRoot)Defined in hackage-security-0.6.3.2 · Hackage.Security.TUF.PathsPretty (Path RepoRoot)Defined in hackage-security-0.6.3.2 · Hackage.Security.TUF.PathsPretty (Path Absolute)Defined in hackage-security-0.6.3.2 · Hackage.Security.Util.PathPretty (Path HomeDir)Defined in hackage-security-0.6.3.2 · Hackage.Security.Util.PathPretty (Path Relative)Defined in hackage-security-0.6.3.2 · Hackage.Security.Util.PathPretty (Path Tar)Defined in hackage-security-0.6.3.2 · Hackage.Security.Util.PathPretty (Path Unrooted)Defined in hackage-security-0.6.3.2 · Hackage.Security.Util.Path