base-4.22.0.0: Core data structures and operations
Copyright(c) The University of Glasgow 2017
Licensesee libraries/base/LICENSE
Maintainerlibraries@haskell.org
Stabilityinternal
Portabilitynon-portable
Safe HaskellSafe-Inferred
LanguageHaskell2010

GHC.IO.Windows.Paths

Description

Windows FilePath handling utility for GHC code.

Synopsis

Documentation

getDevicePath :: FilePath -> IO FilePath Source #

This function converts Windows paths between namespaces. More specifically It converts an explorer style path into a NT or Win32 namespace. This has several caveats but they are caveats that are native to Windows and not POSIX. See https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247.aspx. Anything else such as raw device paths we leave untouched. The main benefit of doing any of this is that we can break the MAX_PATH restriction and also access raw handles that we couldn't before.