Kim-Ee Yeoh wrote:
Considerdata Task = Task { title :: String, completed :: Bool, subtasks :: Maybe [Task] }
Note that unless you have some meaning in mind for the difference between a subtask value of Nothing vs. (Just []), the Maybe is redundant.
Anton _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
