HORIZON HASKELLDocslts/ghc-9.14.xb9228482026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · b922848 · 2026-10-12

Moduledirectory-ospath-streaming-0.3Haskell2010

System.Directory.OsPath.Streaming.Internal

Synopsis

Returns both basename path and full path of a directory entry relative to the passed DirStream root.

For example:

readDirStreamFull =<< openDirStream [osp|.|]
Just ("./bar",Basename {unBasename = "foo"},File Regular)
readDirStreamFull =<< openDirStream [osp|foo/|]
Just ("foo/bar",Basename {unBasename = "foo"},File Regular)
readDirStreamFull =<< openDirStream [osp|/foo/foo|]
Just ("/foo/foo/bar",Basename {unBasename = "foo"},File Regular)

This allows to avoid re-creating the full path on the client side and thus reduce allocations.