Test different memory implementation for haskell output