Measuring memory usage of Glasgow Haskell programs