Re: [Haskell-cafe] Interleaving type variables in a tree, has this a name ?

2012-10-13 Thread Chaddaï Fouché
On Sat, Oct 13, 2012 at 11:25 PM, Eric Dedieu wrote: > Hi Haskell Helpers, > > For a hobby projet to learn haskell, I'm trying to use this kind of > interleaved > tree structure (simplified): > >> data ANode a b = ANode a [BNode a b] [BNode a b] >> data BNode a b = BNode b [ANode a b] [ANode a b]

[Haskell-cafe] Interleaving type variables in a tree, has this a name ?

2012-10-13 Thread Eric Dedieu
Hi Haskell Helpers, For a hobby projet to learn haskell, I'm trying to use this kind of interleaved tree structure (simplified): > data ANode a b = ANode a [BNode a b] [BNode a b] > data BNode a b = BNode b [ANode a b] [ANode a b] The first list of each node is for links "up", the second for "do

Re: [Haskell-cafe] Tutorial: Haskell for the Evil Genius

2012-10-13 Thread Rustom Mody
On Sun, Sep 16, 2012 at 8:18 PM, Tillmann Rendel < ren...@informatik.uni-marburg.de> wrote: > Hi, > > > Kristopher Micinski wrote: > >> Everyone in the Haskell cafe probably has a secret dream to give the >> best "five minute monad talk." >> > > (1) Most programming languages support side effects.

[Haskell-cafe] 2 line finite (monadic) state machine

2012-10-13 Thread Izaak Meckler
Hi all,I just wrote some nice code: A finite state machine with monadic state, allowing both DFAs and NFAs to be expressed with the same functions. I've only used it in [], Set, and Maybe, but I think it would be interesting in several others (a probability monad comes to mind). Also, if anyone has

[Haskell-cafe] character encoding problems with hxt (I think)

2012-10-13 Thread nadine . and . henry
Dear Haskellers, I'm trying to write some code that grabs countries and provinces from the iso_3166 files on Linux systems. I seem to be running into some kind of character encoding problem. file says iso_3166_2.xml is a utf8 file, and isutf8 agrees, but when I run the following code, it crashe

Re: [Haskell-cafe] Tutorial: Haskell for the Evil Genius

2012-10-13 Thread KC
The latest Haskell Platform is 2012.2.0.0 You are apparently running a much older version. >> #!"c:/Program Files/Haskell Platform/2010.2.0.0/bin/" runhaskell -- -- Regards, KC ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haske

Re: [Haskell-cafe] Tutorial: Haskell for the Evil Genius

2012-10-13 Thread Benjamin L. Russell
> I found some useful reference code on the Haskell Wiki and constructed my own > memoized Fibonacci function using the MemoTrie library, which, fortunately, is > builtin with Haskell Platform and therefore does not require the tutorial > reader to install additional code. > > The new version of th