[Haskell] FunDeps and MArray