File tree Expand file tree Collapse file tree 3 files changed +21
-0
lines changed
core/src/Streamly/FileSystem/Path Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 5566-- Portability : GHC
77--
8+ -- Represent 'File' or 'Dir' type path nodes explicitly as separate types for
9+ -- the safety of path append operation. A 'Dir' path is a branching or
10+ -- intermediate node whereas a 'File' type is a terminal or leaf node. We
11+ -- cannot append a path to a 'File' type path.
12+ --
13+ -- See the overview in the "Streamly.FileSystem.Path" module for more details.
14+ --
815module Streamly.FileSystem.Path.Node
916 (
1017 -- * Types
Original file line number Diff line number Diff line change 5566-- Portability : GHC
77--
8+ -- Represent 'Rooted' or 'Branch' type path segments explicitly as separate
9+ -- types for the safety of path append operation. A Rooted path is an absolute
10+ -- path or a path that is relative to the current directory with a leading dot.
11+ -- Rooted paths cannot be appended to other paths.
12+ --
13+ -- See the overview in the "Streamly.FileSystem.Path" module for more details.
14+ --
815module Streamly.FileSystem.Path.Seg
916 (
1017 -- * Types
Original file line number Diff line number Diff line change 5566-- Portability : GHC
77--
8+ -- Use 'Rooted' or 'Branch' path segment type annotations as well as 'File' and
9+ -- 'Dir' node type annotations on the same path for the safety of path append
10+ -- operation. A Rooted path cannot be appended to other paths, and you canno
11+ -- append a path to a 'File' type path.
12+ --
13+ -- See the overview in the "Streamly.FileSystem.Path" module for more details.
14+ --
815
916module Streamly.FileSystem.Path.SegNode
1017 (
You can’t perform that action at this time.
0 commit comments