
2 Jul
2012
2 Jul
'12
3:45 a.m.
On Mon, Jul 2, 2012 at 7:54 AM, Kazu Yamamoto
Hello,
vacuum allow that and much more though I don't know if it still works correctly on GHC 7.4. Anyway your isThunk is
isThunk a = fmap GHC.Vacuum.ClosureType.isThunk GHC.Vacuum.closureType
Great. I confirmed that this works with GHC 7.4.
Good news !
# I removed the "a" parameter.
Yes, I wrote an horrible hybrid of two idea and the result don't work... I suppose you got something like that :
isThunk :: a -> IO Bool isThunk = fmap VC.isThunk . closureType
-- Jedaï