Skip to content

"stack test" fails during compilation of hlint #1

@jonathanknowles

Description

@jonathanknowles

Logs:

$ stack test
hlint-1.9.35: configure
hlint-1.9.35: build
Progress: 1/7
--  While building package hlint-1.9.35 using:
      /home/jsk/.stack/setup-exe-cache/x86_64-linux/setup-Simple-Cabal-1.24.0.0-ghcjs-0.2.1.9007001_ghc-8.0.1 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.24.0.0_ghcjs build --ghc-options " -ddump-hi -ddump-to-file"
    Process exited with code: ExitFailure 1
    Logs have been written to: /private/jsk/projects/current/haskell-calculator/.stack-work/logs/hlint-1.9.35.log

    Configuring hlint-1.9.35...
    Building hlint-1.9.35...
    Preprocessing library hlint-1.9.35...
    [ 1 of 46] Compiling Test.Util        ( src/Test/Util.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.0.0_ghcjs/build/Test/Util.js_o )
    [ 2 of 46] Compiling Test.InputOutput ( src/Test/InputOutput.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.0.0_ghcjs/build/Test/InputOutput.js_o )
    [ 3 of 46] Compiling HSE.Type         ( src/HSE/Type.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.0.0_ghcjs/build/HSE/Type.js_o )
    [ 4 of 46] Compiling HSE.FreeVars     ( src/HSE/FreeVars.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.0.0_ghcjs/build/HSE/FreeVars.js_o )
    [ 5 of 46] Compiling HSE.Util         ( src/HSE/Util.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.0.0_ghcjs/build/HSE/Util.js_o )
    [ 6 of 46] Compiling HSE.Match        ( src/HSE/Match.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.0.0_ghcjs/build/HSE/Match.js_o )
    [ 7 of 46] Compiling HSE.Scope        ( src/HSE/Scope.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.0.0_ghcjs/build/HSE/Scope.js_o )
    [ 8 of 46] Compiling HsColour         ( src/HsColour.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.0.0_ghcjs/build/HsColour.js_o )
    [ 9 of 46] Compiling Parallel         ( src/Parallel.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.0.0_ghcjs/build/Parallel.js_o )
    [10 of 46] Compiling Paths_hlint      ( .stack-work/dist/x86_64-linux/Cabal-1.24.0.0_ghcjs/build/autogen/Paths_hlint.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.0.0_ghcjs/build/Paths_hlint.js_o )
    [11 of 46] Compiling Util             ( src/Util.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.0.0_ghcjs/build/Util.js_o )
    [12 of 46] Compiling CmdLine          ( src/CmdLine.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.0.0_ghcjs/build/CmdLine.js_o )

    /tmp/stack5931/hlint-1.9.35/src/CmdLine.hs:69:12: error:
        Ambiguous occurrence ‘isWindows’
        It could refer to either ‘System.FilePath.isWindows’,
                                 imported from ‘System.FilePath’ at src/CmdLine.hs:13:1-22
                                 (and originally defined in ‘System.FilePath.Current’)
                              or ‘System.Info.Extra.isWindows’,
                                 imported from ‘System.Info.Extra’ at src/CmdLine.hs:20:1-24

This issue probably shares a root cause with ghcjs/ghcjs-boot#38.

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions