• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

domenkozar/hie-nix: Nix packages for Haskell IDE Engine

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

domenkozar/hie-nix

开源软件地址(OpenSource Url):

https://github.com/domenkozar/hie-nix

开源编程语言(OpenSource Language):

Nix 100.0%

开源软件介绍(OpenSource Introduction):

Superseeded by https://github.com/Infinisil/all-hies

This project is around just for reference, please use all-hies instead.


Purpose

The purpose of this repository is to provide HIE for each major GHC version installable via Nix.

Hie built with specific GHC needs to match the major version of GHC used on development project.

Install

For linux you can use binaries provided by Cachix. See instructions how to configure cachix. Otherwise (on macOS) be prepared to compile for a while.

To install a wrapper that will be able to pick between hie-8.2 and hie-8.4:

$ nix-env -iA hies -f https://github.com/domenkozar/hie-nix/tarball/master
$ hie-8.2 --help
$ hie-8.4 --help

Or for just a specific GHC and get hie:

$ nix-env -iA hie84 -f https://github.com/domenkozar/hie-nix/tarball/master
$ hie --help

Updating HIE

# edit commit in update.sh
$ ./update.sh

FAQ

How do I make editor integrate the right hie version?

Install hies which will include all supported GHC versions and the wrapper supported by most editors.

How do I integrate my editor?

See https://github.com/haskell/haskell-ide-engine#editor-integration

Does hie-nix work with Stack?

Yes, but make sure you have Nix enabled in either stack.yaml in your project or globally:

$ cat ~/.stack/config.yaml
nix: 
  enable: true

How can I expose Nix's hoogle database to HIE

hie looks at the environment variable HIE_HOOGLE_DATABASE, one can find the index by looking at Nix's Hoogle wrapper script.

One can add the below to the shell's shellHook. Make sure to use ghcWithHoogle or ghc.withHoogle when creating the shell to ensure the Hoogle database is created.

export HIE_HOOGLE_DATABASE="$(cat $(which hoogle) | sed -n -e 's|.*--database \(.*\.hoo\).*|\1|p')"



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap