什么是Haskell标准库? [英] What is the Haskell standard library?

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

问题描述

特定于GHC的库可以称为标准库吗?还是仅Haskell 2010报告中的那些计数?

Can the GHC-specific libraries be called the standard library? Or do only those in the Haskell 2010 report count?

许多GHC库可以通过Haskell报告中的功能来实现,并可能与C绑定结合使用.但其他语言依赖于GHC特定的扩展,因为语言报告中定义的当前Haskell语言不支持它.

Many of the GHC libraries can be implemented by the functions in the Haskell report, possibly combined with C bindings. But the others are reliant on GHC-specific extensions, since the current Haskell language as defined in the language report doesn't support it.

例如,Data.Array.IO可以在纯标准的Haskell中实现吗?

For example, can Data.Array.IO be implemented in pure standard Haskell?

认为GHC 是Haskell真的可以吗?

Is it really okay to think that GHC is Haskell?

推荐答案

不幸的是,Haskell社区对什么是标准"库没有真正的共识.

Unfortunately the Haskell community doesn't have a real consensus about what's the "standard" library.

  • The report libraries are too limited for many uses.
  • The GHC libraries are mainly defined by what GHC itself needs.
  • The Haskell Platform was an attempt to define one but many don't like to depend on it.
  • Stackage and especially Hackage are too huge.

这篇关于什么是Haskell标准库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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