Haskell 在Osx 10.15.3上安装ghc mod失败(已尝试lts-8.24)
我是haskell的新手,希望在vs代码上部署haskell。当我尝试使用“stack install ghc mod--resolver lts-8.24”安装ghc mod时。行动失败了。如果有人能帮助我,我将不胜感激! 错误日志如下所示:Haskell 在Osx 10.15.3上安装ghc mod失败(已尝试lts-8.24),haskell,visual-studio-code,ghc-mod,Haskell,Visual Studio Code,Ghc Mod,我是haskell的新手,希望在vs代码上部署haskell。当我尝试使用“stack install ghc mod--resolver lts-8.24”安装ghc mod时。行动失败了。如果有人能帮助我,我将不胜感激! 错误日志如下所示: happy > warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] happy
happy > warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
happy >
happy > /Users/a2/.stack/programs/x86_64-osx/ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:503:56: error:
happy > note: expanded from macro 'ZERO_SLOP_FOR_SANITY_CHECK'
happy > #define ZERO_SLOP_FOR_SANITY_CHECK (defined(DEBUG) && !defined(THREADED_RTS))
happy > ^
happy > 9 warnings generated.
happy > clang: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
happy > copy/register
happy > Installing executable(s) in
happy > /Users/a2/.stack/snapshots/x86_64-osx/e87c8df95ec9518f8408232a2e3513d766cdb2d97a442d1257a73460a8d14994/8.0.2/bin
-- While building package profunctors-5.2 using:
/Users/a2/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2 --builddir=.stack-work/dist/x86_64-osx/Cabal-1.24.2.0 build --ghc-options ""
Process exited with code: ExitFailure 1
如果您只是想让haskell处理vscode,那么我发现ghcide工作得非常好 将其签出到本地目录,并修改它附带的stack.yaml,使其具有与您要使用的项目相同的解析器 e、 g.更改此行: 分解器:夜间-2019-09-21 致: 分解器:lts-14.12 然后使用:(记下可执行文件的放置位置) 堆栈安装 最后,打开vscode并添加ghcide扩展,并将其指向配置中的ghcide可执行文件