On Sat, Oct 13, 2012 at 11:25 PM, Eric Dedieu <[email protected]> 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]

Wouldn't the following work as well and be simpler to handle :

> data Node a b = Node a [Node b a] [Node b a]

-- 
Jedaï

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to