<div dir="ltr"><div>> Is anybody else experiencing really slow compilations with GHC 7.10.2 on<br> > Windows 10?<br><br>The problem comes down to these lines <a href="https://github.com/ghc/ghc/blob/e5ecb2010514405ac1b9b1285a8a65c00a5fd4e0/libraries/base/include/HsBase.h#L525">https://github.com/ghc/ghc/blob/e5ecb2010514405ac1b9b1285a8a65c00a5fd4e0/libraries/base/include/HsBase.h#L525</a></div><div><br></div><div>The issue is that the entire Windows support in GHC Is mostly provided through POSIX support.</div><div>Windows however isn't a POSIX system, and these APIs were implemented for compatibility and not performance.</div><div><br></div><div>This is the reason why any I/O operation on GHC Windows will be significantly slower. This is the same reason why Console I/O is also much slower. Why Unicode support is a bit wonky etc.</div><div><br></div><div>GHC Is currently just not using native Windows syscalls, because by large most developers of GHC don't use Windows. </div><div><br></div><div>There are other issues (but I won't go in detail on the user list). We are trying to fix this, there are multiple tickets open such as <a href="https://ghc.haskell.org/trac/ghc/ticket/11394">https://ghc.haskell.org/trac/ghc/ticket/11394</a> but it's a big task and there are very limited resources so priority is given to things currently broken rather than just slow.</div></div>