Well, solving knapsack problem in a couple lines of code looks really fun and instructive.

Thanks Ertugrul for suggesting Yesod. This is definitely a great tool for creating web applications but I fear that's too much to swallow in 5 minutes. And thanks also Jason for reminding me of the gems one can find in Oleg's treasures trove but given the expected attendance, that's maybe too much type wizardry. However, I remember having written an arab to roman numerals converter based on type system which could be fun also.

Regards,
Arnaud

On Mon, Feb 27, 2012 at 10:36 PM, <roconnor@theorem.ca> wrote:
In less than 5 minutes I can solve NP-Complete problems in restaurant orders:

http://www.reddit.com/comments/24p2c/xkcd_does_anyone_else_feel_compelled_to_solve_this/c24pc5


On Mon, 27 Feb 2012, Arnaud Bailly wrote:

Hello Cafe,

I will be (re)presenting Haskell in a "Batlle Language" event Wednesday evening: A fun and interactive contest where various programming language champions try to attract as much
followers as possible in 5 minutes.

Having successfully experimented the power of live coding in a recent Haskell introduction for the Paris Scala User Group, I would like to do the same but given the time frame I need a
simpler example than the music synthesizer program.

So I would like to tap in the collective wisdom looking for some concise, eye-opening, mind-shaking and if possible fun example of what one can achieve in Haskell. Things that sprung to
my mind are rather dull: prime factors, fibonacci numbers.

Thanks in advance,
Arnaud



--
Russell O'Connor                                      <http://r6.ca/>
``All talk about `theft,''' the general counsel of the American Graphophone
Company wrote, ``is the merest claptrap, for there exists no property in
ideas musical, literary or artistic, except as defined by statute.''