Hi John

Sorry, I don't think I really grasp your problem?

I think you're mixing two things:
a) which data type to use to store whatever you like?
  * http://haskell.org/haskellwiki/Existential_type
  * Typable and Data.Dynamic
  etc..
b) Which container to use to put in stuff, return an identifier so that
  it can be removed by id again?
  There are many ways. Probably something like Data.Map or finger trees
  will do very well.. (use Int as key type and use max + 1 when
  inserting a new one or such?)

I hope I've helped you in some way..

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

Reply via email to