Generates a Rooted (Dir WindowsPath) type from a quoted literal.
Path.toString (Path.toPath ([rtdir|/usr|] :: Rooted (Dir PosixPath)))"/usr"
:: a typeCtrl KGHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11
Modulestreamly-core-0.3.1Haskell2010
When Rooted/Unrooted and File/Dir both are present, Rooted/Unrooted must be
outermost constructors and File/Dir as inner. Thus the types File (Rooted
a) or Dir (Rooted a) are not allowed but Rooted (Dir a) and Rooted (File a) are
allowed.
Quasiquoters.
Generates a Rooted (Dir WindowsPath) type from a quoted literal.
Path.toString (Path.toPath ([rtdir|/usr|] :: Rooted (Dir PosixPath)))"/usr"
Generates a Unrooted (Dir WindowsPath) type from a quoted literal.
Path.toString (Path.toPath ([urdir|usr|] :: Unrooted (Dir PosixPath)))"usr"
Generates a Rooted (File WindowsPath) type from a quoted literal.
Path.toString (Path.toPath ([rtfile|/x.txt|] :: Rooted (File PosixPath)))"/x.txt"
Generates a Unrooted (File WindowsPath) type from a quoted literal.
Path.toString (Path.toPath ([urfile|x.txt|] :: Unrooted (File PosixPath)))"x.txt"
Template Haskell expression splices.
Generates a Haskell expression of type Rooted (Dir WindowsPath).
Generates a Haskell expression of type Unrooted (Dir WindowsPath).
Generates a Haskell expression of type Rooted (File WindowsPath).
Generates a Haskell expression of type Unrooted (File WindowsPath).
Append a branch type path to a directory.
Path.toString (Path.toPath (SegNode.join [rtdir|/usr|] [urdir|bin|] :: Rooted (Dir PosixPath)))"/usr/bin"Path.toString (Path.toPath (SegNode.join [rtdir|/usr|] [urfile|bin|] :: Rooted (File PosixPath)))"/usr/bin"Path.toString (Path.toPath (SegNode.join [urdir|usr|] [urdir|bin|] :: Unrooted (Dir PosixPath)))"usr/bin"Path.toString (Path.toPath (SegNode.join [urdir|usr|] [urfile|bin|] :: Unrooted (File PosixPath)))"usr/bin"