[Haskell] dynamic arrays