Iain Barnett wrote:
data Task = Task { title :: String, completed :: Bool, subtasks :: [Task] }

This one looks the best to me. Remember, you can just use an empty list if the task has no subtasks.

- Jake
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to