11 Jan
2016
11 Jan
'16
9:20 p.m.
You can do this using ExistentialQuantification.
On Jan 11, 2016, at 10:15, Guillaume Bouchard <guillaum.bouchard+haskell@gmail.com> wrote:
doAllTask :: [?????] -> IO ()
In this case, GroceryTask and LaundryTask are NOT the same type, hence the "????", you cannot create a list which stores different Tasks and returns apply