博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Haskell: install from source
阅读量:6929 次
发布时间:2019-06-27

本文共 1602 字,大约阅读时间需要 5 分钟。

First we need to determine the version of ghc to be installed. Newest version not always good. Since we are going to install ghc-mod as final destination, its dependence on ghc version shall be the final judge. Check this for more info about version restriction.

To install haskell, first need to check .

As it says, minimal installation includes ghc, & stack. It also seems that stack & cabal are equal. And in some circumstances cabal is better than stack, so we choose cabal.

Directly install ghc from source takes time.. The prerequisites suggests:

<>

In general, we support building with the previous 2 major releases, e.g.:

  • To build 6.8.* you need GHC >= 6.4
  • To build 6.10.* you need GHC >= 6.6
  • To build 7.4.* you need GHC >= 7.0
  • To build 7.6.* you need GHC >= 7.2
  • To build 7.8.* you need GHC >= 7.4
  • To build 7.10.* you need GHC >= 7.6
  • To build 8.0.* you need GHC >= 7.8
  • To build 8.2.* you need GHC >= 7.10

</Quote>

Recursive building..

So in order to use the newest version of ghc, it seems we need first to get the very fresh binary of ghc and use it to build ghc from source .. all binary/sources can be found .

Also build cabal from source needs ghc, and newest version of possible ghc is preferred, otherwise bugs might drive you crazy. And cabal repository seems been gfw-ed.

Using cabal to install ghc-mod, because it seems needed by haskell-completion vimscripts.

cabal can only install packages, cannot remove, if need to remove, first install a package called cabal-uninstall, then ~/.cabal/bin/cabal-uninstall shall uninstall packages.

转载于:https://www.cnblogs.com/sansna/p/7574209.html

你可能感兴趣的文章
基于Java IO 序列化方案的memcached-session-manager多memcached节点配置
查看>>
floor相关
查看>>
Xianfeng轻量级Java中间件平台:功能管理
查看>>
免费下载:320+ 手绘风格 Apple iOS7 图标
查看>>
PLSQL Developer Debug
查看>>
树状数组三种模型
查看>>
6 个优秀的开源 OCR 光学字符识别工具
查看>>
BZOJ4046 : [Cerc2014] Pork barre
查看>>
永久开启完整版Google Play
查看>>
HDU 3832 Earth Hour(最短路)
查看>>
大战C100K之-Linux内核调优篇--转载
查看>>
selenium2.0 --常用函数2
查看>>
在windows上安装scikit-learn开发环境
查看>>
Java集合源码学习(二)ArrayList
查看>>
构建基于Javascript的移动web CMS——加入jQuery插件
查看>>
通过YAJL获取json中的值
查看>>
Solr集群更新配置的方式
查看>>
DataSet之增删改查操作(DataGridView绑定)
查看>>
整理几个 RPC 框架
查看>>
移动Web触控事件总结
查看>>