Good Haskell source to read and learn from [closed

2019-01-20 20:43发布

What are some open source programs that use Haskell and can be considered to be good quality modern Haskell? The larger the code base, the better.

I want to learn from their source code. I feel I'm past the point of learning from small code examples, which are often to esoteric and small-world. I want to see how code is structured, how monads interact when you have a lot of things going on (logging, I/O, configuration, etc.).

7条回答
贪生不怕死
2楼-- · 2019-01-20 21:09

Darcs is an open source, source code management system. It should give you a nice idea for Haskell.

查看更多
女痞
3楼-- · 2019-01-20 21:11

What I recommend.

Read code by people from different grad schools in the 1990s

Read code by the old masters certain people (incomplete list)

Note that people like me, Coutts, Mitchell, O'Sullivan, Lynagh, etc. learned our Haskell style from these guys.

Read some applications

查看更多
SAY GOODBYE
4楼-- · 2019-01-20 21:20

The source code to the Yesod Web Platform is fairly complex, well thought out, and well written. You will learn a lot from the persistence library that comes with it as well.

查看更多
相关推荐>>
5楼-- · 2019-01-20 21:21
  1. Haskell: Functional Programming with Types

    Joeri van Eekelen, et al. | Wikibooks Published in 2007, 290 pages

  2. Learn You a Haskell for Great Good!

    Miran Lipovaca | LearnYouaHaskell.com Published in 2010, 176 pages

  3. Real World Haskell

    B. O'Sullivan, J. Goerzen, D. Stewart | O'Reilly Media, Inc. Published in 2008, 710 pages

  4. The Haskell Road to Logic, Maths and Programming

    Kees Doets, Jan van Eijck | College Publications Published in 2004, 449 pages

查看更多
做个烂人
6楼-- · 2019-01-20 21:24

If you care about Web-programming I would recommend Chris Done's lpaste project.

查看更多
贼婆χ
7楼-- · 2019-01-20 21:24

GHC is probably the biggest or one of the biggest projects written in Haskell that is open source. When I say biggest, I do not just mean in terms of source size, but also impact, use, innovation, robustness. GHC can teach you a lot about writing Haskell.

查看更多
登录 后发表回答