
30 Jul
2001
30 Jul
'01
4:59 a.m.
| > I would like to add a primitive to GHC 5.00.2 of the form: | > | > isWHNF :: a -> Bool One might be inclined to ask what for? Such a primitive is probably difficult to implement, given the variety of GHC's closures, and is potentially dangerous -- you could conceivably break referential transparency (?) I can also imagine it could interact badly with the complexities of GHC's simplifer. What would you hope to gain from such a thing? Perhaps you have some wider purpose which could be achieved some other way? J