Pakej: rewrite memory widget in Haskell