[Haskell-cafe] how to check thunk

Kazu Yamamoto ( 山本和彦 ) kazu at iij.ad.jp
Mon Jul 2 07:54:51 CEST 2012


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.
# I removed the "a" parameter.

Thank you very much!

--Kazu



More information about the Haskell-Cafe mailing list