我搜集的haskell学习资源,将持续在这里更新
- 如何学习haskell http://stackoverflow.com/questions/1012573/how-to-learn-haskell
- haskell解题99 http://haskell.org/haskellwiki/H-99%3a_Ninety-Nine_Haskell_Problems
- 范畴论与haskell http://en.wikibooks.org/wiki/Haskell/Category_theory
- project euler,也是一套难度渐增的题目 http://projecteuler.net/index.php?section=problems
- 发现一位国内程序员研究haskell的博客:http://www.yi-programmer.com/blog/list.html
- http://www.haskell.org/haskellwiki/All_About_Monads
quicksort实在是太经典了,记录下
qs' :: Ord a => [a] -> [a] qs' [] = [] qs' (x:xs) = lhs xs ++ [x] ++ rhs xs where lhs xs = qs' $ filter (<=x) xs rhs xs = qs' $ filter (> x) xs