[Haskell] Select using MArray