Haskell Build Tree From List. Turn a list of IO actions into one IO action that returns a lis