linux – Haskell Yesod问题
发布时间:2020-12-14 00:54:22 所属栏目:Linux 来源:网络整理
导读:有人可以帮我吗?!我在 Haskell Yesod网站上工作,在C9工作区上大学,我已经通过命令Yesod安装并更新了cabal,但是当我尝试“stack build”命令时,会出现这个可怜的错误消息: $stack buildaulahaskell-0.0.0: build (lib + exe)Preprocessing library aulahas
有人可以帮我吗?!我在
Haskell Yesod网站上工作,在C9工作区上大学,我已经通过命令Yesod安装并更新了cabal,但是当我尝试“stack build”命令时,会出现这个可怜的错误消息:
$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. 该行或许您需要在构建中添加“http-types” – 依赖于.cabal文件,告诉您该怎么做:您必须将http-types添加到cabal文件库aulahaskell的build-depends:部分. 如果这没有帮助,请发布您的cabal文件. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |