We're pleased to announce the first release of the haskell Platform: a single, standard haskell distribution for every system. Download the haskell Platform 2009.2.0 installers and specification: http://hackage.haskell.org/platform/ The haskell Platform is a blessed library and tool suite for haskell culled from Hackage, along with installers for a wide variety of systems. It saves developer...
by MMMIX - Functional编程 - 2009-05-06 14:41:51 阅读(2008) 回复(0)
在 C 这类语言中,笔试时经常考的一个题目是,写出一个数组的全排列或组合。 正好,我正在写的这个玩具(现在只能这样叫)中要用到“组合”,发现在 haskell 中写个组合的函数真是方便之极呀。上一段代码,各位见笑: combination :: [a] -> [[a]] combination [] = [[]] combination (x:xs) = (map ([x] ++ ) (combination xs) )++ (combination xs)
The haskell Road to Logic, Math and Programming Kees Doets and Jan van Eijck March 4, 2004 [ 本帖最后由 fuqiang_huang 于 2008-9-29 18:43 编辑 ]
本贴收录 haskell 相关资源。 如果你发现: 某些链接已失效; 遗漏了某些非常有帮助的资源; 存在其他错误或问题 请告诉我,谢谢! [ 本帖最后由 MMMIX 于 2008-9-4 14:23 编辑 ]
This is Haddock, a tool for automatically generating documentation from annotated haskell source code. It is primarily intended for documenting libraries, but it should be useful for any kind of haskell code. Like other systems (IDoc,HDoc), Haddock lets you write documentation annotations next to the definitions of functions and types in the source code, in a syntax that is easy on the eye when w...
一个生动风趣的haskell入门教程, 只是译者的英文和中文都是过于猥琐, 完全没译出那个"趣"字来 暑假在家整理了一下, 前七章已更新完毕, 第八章和第九章将在稍后释出 第一次翻译技术文章,不当之处欢迎版内的大大们提出 ^_^ http://swdpress.cn/2008/11/30/learn-you-a-haskell-for-great-good/ update: 以上链接已撞墙,白名单 and so on~ 暂时转移至 http://www.fleurer-lee.com/lyah/ [ 本帖最后由 Fleurer 于 2010-1-13 15:...
本文可以被任意转载、优化修改,无须注明 译文中如有不妥之处,请参照原文 不知有没有重复造轮子,翻译中自己觉得不妥之处用 (?english?) 注明 翻译文章为:Tour of the haskell Syntax 链接:http://cs.anu.edu.au/student/comp1100/haskell/tourofsyntax.html 译者翻译不精,译文中肯定会有许多 bugs ,还望广大 CUer 指正 haskell 语法参考 该文档粗略的讲解 haskell 语法,详细语法请参阅 haskell 主页。我之所以写这个文档...
[code] f x = case x of 1->-1 2->2 _->0 ERROR: Syntax error in case expression (unexpected symbol "->-") [/code] 1.以上代码出错可否判断 haskell 的运算符匹配是贪婪型的 ? 2.haskell 中大量运用递归,是否对程序的效率有影响 ? 3.python 中的 generator 是不是有 lazy 的影子 ? [ 本帖最后由 izhier 于 2009-3-26 23:03 编辑 ]
Visualising the haskell Universe http://donsbot.wordpress.com/2009/03/16/visualising-the-haskell-universe/ 用图示的方式显示 haskell 代码的模块依赖关系,相当 cool.
在real world haskell 里面看到一个例子. 就比葫芦画瓢的写了一遍. 结果从编译失败. 每个字母都检查了一下, 一模一样. 最后复制 例子 , 编译通过. 最后发现是缩进的问题. 代码如下: 正确的代码如下: import System.IO import Data.Char(toUpper) main :: IO () main = do inh <- openFile "input.txt" ReadMode outh <- openFile "output.txt" WriteMode mainloop inh outh hClose inh h...