
#13373: Handle long file paths on Windows -------------------------------------+------------------------------------- Reporter: ezyang | Owner: (none) Type: feature request | Status: new Priority: normal | Milestone: Component: libraries/base | Version: 8.1 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by Rufflewind): I have a [https://github.com/haskell/directory/blob/b82ca0194767bf418330bd1ed89ea54171... helper function] which can be used to add `\\?\` to paths and takes care of the subtleties of `..` etc: So far I've managed to [https://github.com/haskell/directory/commit/f77655a2e17c6f7076c7cf9d7de83f5b... use this] for most of the direct Win32 API calls. However, `c_stat` (from GHC's `System.Posix.Internals`) is used quite a bit and does not support longer paths AFAIK, so that probably needs to be replaced somehow. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13373#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler