在阴谋沙箱中使用Fay [英] Using Fay in a cabal sandbox

查看:94
本文介绍了在阴谋沙箱中使用Fay的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始使用阴谋沙箱和Fay.但是,Fay似乎无法自动找到这些软件包,大概是因为它们不在全局" cabal软件包数据库中.我尝试遵循此Wiki页面上的建议,但未成功在我看来:

I've just started using both cabal sandboxes and Fay. However, Fay seems unable to find the packages automatically, presumably as they are not in the 'global' cabal package database. I tried unsuccessfully to follow the advice on this wiki page, which to me looked like:

./cabal-sandbox/bin/fay.exe --base-path .cabal-sandbox/i386-windows-ghc-7.6.3/fay-base-0.19/src/ Frontend.hs

但是Fay仍然抱怨它cannot find package fay-base.有什么我可以做的,还是我必须在沙箱外部安装Fay?

But Fay still complains it cannot find package fay-base. Is there something I can do about this, or must I install Fay outside the sandbox?

推荐答案

您不需要提供基本路径,但是需要通过传递--package-conf或设置HASKELL_PACKAGE_SANDBOX将其指向正确的程序包配置.环境变量.

You don't need to supply the base path, but you need to point it to the correct package config by passing --package-conf or setting the HASKELL_PACKAGE_SANDBOX environment variable.

例如:

./.cabal-sandbox/bin/fay --package-conf=.cabal-sandbox/x86_64-osx-ghc-7.6.3-packages.conf.d examples/alert.hs

HASKELL_PACKAGE_SANDBOX=./.cabal-sandbox/x86_64-osx-ghc-7.6.3-packages.conf.d ./.cabal-sandbox/bin/fay examples/alert.hs

更多信息,请访问 https://github.com/faylang/fay/wiki/Installing-and-running#wiki-sandboxes (我刚刚对其进行了编辑以使其更加清晰,我将在另一个Wiki页面中添加一个链接)

More information is available at https://github.com/faylang/fay/wiki/Installing-and-running#wiki-sandboxes (I just edited it to make it a bit clearer, and I'll add a link from the other wiki page)

这篇关于在阴谋沙箱中使用Fay的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆