使用带有Stack和GHCjs的Build-Tools(Alex)

时间:2017-06-06 09:04:24

标签: haskell haskell-stack ghcjs

我依赖于需要alex构建的包,我也需要ghcjs。

当我尝试运行stack ghci时:

language-java-0.2.8: configure (lib)

Error:
--  While building package language-java-0.2.8 using:
      <long command>
    Process exited with code: ExitFailure 1
    Logs have been written to: /Users/LeanderK/Documents/Haskell/exemplator-java_parser/.stack-work/logs/language-java-0.2.8.log

Configuring language-java-0.2.8...
Cabal-simple_mPHDZzAJ_1.24.2.0_ghcjs-0.2.1.9007019_ghc-8.0.1: The program
'alex' version >=3.1.3 is required but it could not be found.

Warning: Build failed, but optimistically launching GHCi anyway
The following GHC options are incompatible with GHCi and have not been passed to it: -threaded
Configuring GHCi with the following packages: exemplator-client
Using main module: 1. Package `exemplator-client' component exe:exemplator-client-exe with main-is file:         ..../app/Main.hs
Progress: 1/2<command line>: cannot satisfy -package language-java-0.2.8
(use -v for more information)

我尝试过:stack build alex(只返回,没有任何输出。可能会工作),stack install alex(不起作用)。

stack install alex

的输出
Couldn't find executable alex in directory .../.stack/snapshots/x86_64-osx/lts-7.19/ghcjs-0.2.1.9007019_ghc-8.0.1/bin/

供参考:This是依赖项的cabal文件,遗憾的是只能在github上找到。 This是我的堆栈和我的cabal文件。还有一个reddit讨论没有进行任何讨论。

0 个答案:

没有答案