on master help sign in
Work around GHCJS's patched export of isWindows from System.FilePath

Idris fails to compile under GHCJS because [GHCJS's System.FilePath module](https://github.com/ghcjs/ghcjs-boot/blob/master/patches/filepath.patch) exports an isWindows name. This clashes with Idris's internal Util.System.isWindows function. I've worked around this here by importing only the required names from System.FilePath. There's an [open issue](https://github.com/ghcjs/ghcjs-boot/issues/38) in the GHCJS repository to fix this once and for all, but since the issue has a simple workaround I thought I'd contribute this patch to Idris too.

commit54f8988e63569486c15d32aa42c7978931f5a074 authorBenjamin Hodgson <bhodgson@stackoverflow.com> dateFri 16 Sep 2016, 23:26 (10 years ago) parentd386412
1 file changed+8
src/Idris/REPL.hs+8
src/Idris/REPL.hs+8
@@ -75,6 +75,14 @@ import Text.Trifecta.Result(Result(..), ErrInfo(..))
7575
7676import System.Console.Haskeline as H
7777import System.FilePath
78+ ( (</>)
79+ , (<.>)
80+ , splitExtension
81+ , addExtension
82+ , dropExtension
83+ , takeExtension
84+ , takeDirectory
85+ )
7886import System.Exit
7987import System.Environment
8088import System.Process