[Haskell-cafe] Problem with JHC
Felipe Lessa
felipe.lessa at gmail.com
Wed Nov 11 08:23:18 EST 2009
On Wed, Nov 11, 2009 at 04:32:05AM -0800, Philippos Apolinarius wrote:
> data Op = AND | OR | NOT deriving (Show, Read)
> data Tree= L Int | T Op [Tree] deriving (Show, Read)
Hmm, you see,
> philip at desktop:~/jhctut$ ./jtree
> Give me a tree:
> T AND (L 1, L 2)
>
> jtree_code.c:2670: case fell off
> Aborted
you declared 'T Op [Tree]' so you should give 'T AND [L 1, L 2]'
as the tree, right?
--
Felipe.
More information about the Haskell-Cafe
mailing list