在 Archlinux 上设置 Haskell 的建议方法是什么? [英] What is the suggested way of setting up Haskell on Archlinux?

查看:51
本文介绍了在 Archlinux 上设置 Haskell 的建议方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

长话短说,我想要一些关于让 Haskell 在 Archlinux 上工作的(最佳)方式的指导.

Long story short, I'd like some guidance on what's the (best) way to have Haskell work on Archlinux.

work 我的意思是所有,就 ghci 命令行工具而言,安装我没有的包 - 例如 vector-space,其中 这个对我的问题的回答指的是 - 以及 Haskell 顽固的学习者可能需要的任何其他东西.

By work I mean all, in terms of the ghci command line tool, installing packages I don't have - such as vector-space, which this answer to a question of mine refers to -, and any other thing that could be necessary to a Haskell ostinate learner.

Haskell 上的 Archlinux wikipage 列出了三个(替代?)包,用于使 Haskell 工作系统,即 ghccabal-installstack.我在我的系统上安装了第一个和第三个,但我想我必须稍后安装后者(除非它依赖于 ghc)同时篡改(可能与 Vim 作为 Haskell IDE).此外,我安装了大量的 haskell-* 包(为什么?谁知道?作为学习者,我必须多次说呃,让我们试试这个!).

Archlinux wikipage on Haskell lists three (alternative?) packages for making Haskell work on the system, namely ghc, cabal-install, and stack. I have the first and the third installed on my system, but I think I must have installed the latter later (unless it's a dependency to ghc) while tampering around (probably in relation to Vim as a Haskell IDE). Furthermore, I have a huge amount of haskell-* packages installed (why? Who knows? As a learner I must have come multiple times to the point of say uh, let's try this!).

  • 每个软件包有什么优点和缺点吗?
  • 它们都可以在有/没有冲突的情况下使用吗?
  • 它们中的任何一个是否使其他任何东西变得多余?
  • 根据我所写的内容,还有什么我应该注意的事情吗?

推荐答案

Arch Linux 的选择 如果您希望开发 Haskell 代码,那么在它们的包中提供动态链接的库往往会妨碍您.作为 Arch 用户,我的默认建议是根本不要使用 Arch 的 Haskell 软件包,而是通过 ghcupStack,从他们的指南开始各自的项目页面.

Arch Linux's choice of providing dynamically linked libraries in their packages tends to get in the way if you are looking to develop Haskell code. As an Arch user myself, my default advice would be to not use Arch's Haskell packages at all, and instead to install whatever you need through ghcup or Stack, starting from the guidance in their respective project pages.

这篇关于在 Archlinux 上设置 Haskell 的建议方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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