开发者

Useful projects in Haskell

I am very sorry if I ask a wrong question but I really need a professional help. I have to make a rather complex project for a begginer, using Visual Haskell, for a course of functional programming. The problem is that because I am at the beginning I don't know what kind of theme to pick. I want to make a project that evidentiates the real utility of functional programming. If you could just give me some id开发者_如何学编程eas I will be very grateful.

Thanks


You could design a simple programming language and write an interpreter for it:
Check the tools Alex (http://www.haskell.org/alex/) for lexical analysis, and happy (http://www.haskell.org/happy/) for parsing your code.

You can make the language as complex as you want. I think that defining While loops and functions could make it sufficiently complex and satisfying for a beginner.


want to make a project that evidentiates the real utility of functional programming. If you could just give me some ideas I will be very grateful.

Alright, then let me tell you something. Programming is about expression. Functional languages let you express things differently. What are the benefits of the expressions made possible with functional programming?

Infinite lists and recursion can be expressed very simple.

Recursion is functional programming done right.

Try to implement algorithms and datastructures that use it. Balanced trees, fibonacci, euclidian algorithm, all that will benefit from it. Really, anything that features a tree can be expressed very elegantly in functional languages.

Give mathetmical problems a try, try to solve the Euler Problems with Haskell.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜