This repository was archived by the owner on Oct 7, 2020. It is now read-only.
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
Check length of current directory on Windows in install.hs #1209
Open
Description
My suggestion is:
- if we are on Windows
- if
length <$> System.Directory.getCurrentDirectory
is above a threshold (currently some 160 chars isn't buildable) - create some long path and attempt to
setCurrentDirectory
there. - If it succeeds then we have long paths enabled.
- if it fails print a warning and/or abort building
(a blind advice to enable long paths systemwide is not a good idea. Also note that for most of the users Haskell is a toy so the toy shouldn't break their systems used for more serious tasks)