Resource limits for Haskell

Edward Z. Yang ezyang at MIT.EDU
Fri Mar 8 09:52:37 CET 2013

Ever wanted to write this?

    -- | Forks a thread, but kills it if it has more than 'limit'
    -- bytes resident on the heap.
    forkIOWithSpaceLimit :: IO () -> {- limit -} Int -> IO ThreadId

I have a proposal (and some unpublished experimental patches) which do
just that.  Check it out at:

Comments, bikeshedding and critique appreciated.


More information about the ghc-devs mailing list