Thanks for the replies. > Currently the heap overflow exception is not catchable. um, perhaps I can use this: https://hackage.haskell.org/package/base-4.10.1.0/docs/GHC-Conc.html#v:enableAllocationLimit - J