[Haskell] How to use STArray?