gpt4 book ai didi

linux - Haskell Yesod 问题

转载 作者:IT王子 更新时间:2023-10-29 01:07:26 26 4
gpt4 key购买 nike

有人可以帮助我吗?!我在 C9 工作区的 Haskell Yesod 大学网站上工作,我已经通过命令 Yesod 安装并更新 cabal,但是当我尝试“堆栈构建”命令时,出现了这个悲惨的错误消息:

 $ stack build

aulahaskell-0.0.0: build (lib + exe)
Preprocessing library aulahaskell-0.0.0...
[ 7 of 13] Compiling Handler.Cliente ( src/Handler/Cliente.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.2.0/build/Handler/Cliente.o )

/home/ubuntu/workspace/web2017/src/Handler/Cliente.hs:10:1: error:
Failed to load interface for ‘Network.HTTP.Types.Status’
It is a member of the hidden package ‘http-types-0.9.1’.
Perhaps you need to add ‘http-types’ to the build-depends in your .cabal file.
Use -v to see a list of the files searched for.

-- While building package aulahaskell-0.0.0 using:
/home/ubuntu/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.24.2.0 build lib:aulahaskell exe:aulahaskell --ghc-options " -ddump-hi -ddump-to-file"
Process exited with code: ExitFailure 1

说真的,我尝试了很多方法来修复它,但没有任何效果 =S

最佳答案

仔细阅读错误信息:

Failed to load interface for ‘Network.HTTP.Types.Status’
It is a member of the hidden package ‘http-types-0.9.1’.
Perhaps you need to add ‘http-types’ to the build-depends in your .cabal file.
Use -v to see a list of the files searched for.

Perhaps you need to add 'http-types' to the build-depends in your .cabal file 告诉你该怎么做:你必须添加 http-types 到您的 cabal 文件中 aulahaskell 库的 build-depends: 部分。

如果这没有帮助,请发布您的 cabal 文件。

关于linux - Haskell Yesod 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47291657/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com