i'm very new in haskell and i have a problem. I want to take list for ex. [0,1,0,0,1,1,0,1] and put the elements in a Tree structure which is;

`data Tree = Leaf Int | Node String (Tree) (Tree)`

so far wrote the below code but it gives an error.

```
bdd (x:xs)= if elem x [0..9] then Leaf x else Node x (Tree) (Tree)

```

thank you for your help!